- if (!read_mask(inst, "iconify.xbm", theme, &theme->iconify_mask)) {
- char data[] = { 0x00, 0x00, 0x00, 0x00, 0x7f, 0x7f, 0x7f };
- theme->iconify_mask = RrPixmapMaskNew(inst, 7, 7, data);
+ if (read_mask(inst, "iconify.xbm", theme, &theme->iconify_mask)) {
+ if (!read_mask(inst, "iconify_disabled.xbm", theme,
+ &theme->iconify_disabled_mask)) {
+ theme->iconify_disabled_mask =
+ RrPixmapMaskCopy(theme->iconify_mask);
+ }
+ if (!read_mask(inst, "iconify_hover.xbm", theme,
+ &theme->iconify_hover_mask)) {
+ theme->iconify_hover_mask =
+ RrPixmapMaskCopy(theme->iconify_mask);
+ }
+ } else {
+ {
+ char data[] = { 0x00, 0x00, 0x00, 0x00, 0x7f, 0x7f, 0x7f };
+ theme->iconify_mask = RrPixmapMaskNew(inst, 7, 7, data);
+ }
+ theme->iconify_disabled_mask = RrPixmapMaskCopy(theme->iconify_mask);
+ theme->iconify_hover_mask = RrPixmapMaskCopy(theme->iconify_mask);