- if (!read_mask(db, "window.button.stick.pressed.mask",
- &ob_s_desk_pressed_mask)) {
- ob_s_desk_pressed_mask = pixmap_mask_copy(ob_s_desk_unpressed_mask);
+
+ if (read_mask(db, "window.button.shade.mask",
+ &ob_s_shade_unset_mask)) {
+ if (!read_mask(db, "window.button.shade.toggled.mask",
+ &ob_s_shade_set_mask)) {
+ ob_s_shade_set_mask =
+ pixmap_mask_copy(ob_s_shade_unset_mask);
+ }
+ } else {
+ {
+ char data[] = { 0x7f, 0x7f, 0x7f, 0x00, 0x00, 0x00, 0x00 };
+ ob_s_shade_unset_mask = pixmap_mask_new(7, 7, data);
+ }
+ {
+ char data[] = { 0x7f, 0x7f, 0x7f, 0x00, 0x00, 0x00, 0x7f };
+ ob_s_shade_set_mask = pixmap_mask_new(7, 7, data);
+ }