… | |
… | |
1053 | xevent_watcher rootwin_ev; |
1053 | xevent_watcher rootwin_ev; |
1054 | #endif |
1054 | #endif |
1055 | #ifdef HAVE_BG_PIXMAP |
1055 | #ifdef HAVE_BG_PIXMAP |
1056 | int update_background (); |
1056 | int update_background (); |
1057 | #if TRACE_PIXMAPS |
1057 | #if TRACE_PIXMAPS |
1058 | int trace_update_background (const char* file, int line); |
1058 | int trace_update_background (const char *file, int line); |
1059 | # define update_background() trace_update_background (__FILE__, __LINE__) |
1059 | # define update_background() trace_update_background (__FILE__, __LINE__) |
1060 | #endif |
1060 | #endif |
1061 | void update_background_cb (ev::timer &w, int revents); |
1061 | void update_background_cb (ev::timer &w, int revents); |
1062 | ev::timer update_background_ev; |
1062 | ev::timer update_background_ev; |
1063 | #endif |
1063 | #endif |
… | |
… | |
1271 | return base; |
1271 | return base; |
1272 | } |
1272 | } |
1273 | |
1273 | |
1274 | bool option (uint8_t opt) const NOTHROW |
1274 | bool option (uint8_t opt) const NOTHROW |
1275 | { |
1275 | { |
|
|
1276 | if (!opt) |
|
|
1277 | return 0; |
|
|
1278 | |
|
|
1279 | --opt; |
1276 | return options[opt >> 3] & (1 << (opt & 7)); |
1280 | return options[opt >> 3] & (1 << (opt & 7)); |
1277 | } |
1281 | } |
1278 | |
1282 | |
1279 | void set_option (uint8_t opt, bool set = true) NOTHROW |
1283 | void set_option (uint8_t opt, bool set = true) NOTHROW |
1280 | { |
1284 | { |
|
|
1285 | if (!opt) |
|
|
1286 | return; |
|
|
1287 | |
|
|
1288 | --opt; |
1281 | if (set) |
1289 | if (set) |
1282 | options[opt >> 3] |= (1 << (opt & 7)); |
1290 | options[opt >> 3] |= (1 << (opt & 7)); |
1283 | else |
1291 | else |
1284 | options[opt >> 3] &= ~(1 << (opt & 7)); |
1292 | options[opt >> 3] &= ~(1 << (opt & 7)); |
1285 | } |
1293 | } |