… | |
… | |
18 | # define ENABLE_XEMBED 1 |
18 | # define ENABLE_XEMBED 1 |
19 | # define ENABLE_EWMH 1 |
19 | # define ENABLE_EWMH 1 |
20 | # define ENABLE_XIM_ONTHESPOT 1 |
20 | # define ENABLE_XIM_ONTHESPOT 1 |
21 | # define CURSOR_BLINK 1 |
21 | # define CURSOR_BLINK 1 |
22 | # define OPTION_HC 1 |
22 | # define OPTION_HC 1 |
|
|
23 | # define BUILTIN_GLYPHS 1 |
23 | #else |
24 | #else |
24 | # define ENABLE_MINIMAL 1 |
25 | # define ENABLE_MINIMAL 1 |
25 | #endif |
26 | #endif |
26 | |
27 | |
27 | #include <limits.h> |
28 | #include <limits.h> |
… | |
… | |
1270 | return base; |
1271 | return base; |
1271 | } |
1272 | } |
1272 | |
1273 | |
1273 | bool option (uint8_t opt) const NOTHROW |
1274 | bool option (uint8_t opt) const NOTHROW |
1274 | { |
1275 | { |
|
|
1276 | if (!opt) return 0; |
|
|
1277 | |
|
|
1278 | --opt; |
1275 | return options[opt >> 3] & (1 << (opt & 7)); |
1279 | return options[opt >> 3] & (1 << (opt & 7)); |
1276 | } |
1280 | } |
1277 | |
1281 | |
1278 | void set_option (uint8_t opt, bool set = true) NOTHROW |
1282 | void set_option (uint8_t opt, bool set = true) NOTHROW |
1279 | { |
1283 | { |
|
|
1284 | if (!opt) |
|
|
1285 | return; |
|
|
1286 | |
|
|
1287 | --opt; |
1280 | if (set) |
1288 | if (set) |
1281 | options[opt >> 3] |= (1 << (opt & 7)); |
1289 | options[opt >> 3] |= (1 << (opt & 7)); |
1282 | else |
1290 | else |
1283 | options[opt >> 3] &= ~(1 << (opt & 7)); |
1291 | options[opt >> 3] &= ~(1 << (opt & 7)); |
1284 | } |
1292 | } |