Skip to content

Commit

Permalink
Remove wrong code from button mask loading code, bug 6065
Browse files Browse the repository at this point in the history
The READ_MASK_COPY macro already uses these exact fallbacks, so these
lines just overwrote the custom bitmaps with the default fallback bitmaps.
  • Loading branch information
Mikachu committed Nov 5, 2014
1 parent 4784b69 commit f1f5610
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions obrender/theme.c
Expand Up @@ -550,21 +550,6 @@ RrTheme* RrThemeNew(const RrInstance *inst, const gchar *name,
theme->def_win_icon_w = OB_DEFAULT_ICON_WIDTH;
theme->def_win_icon_h = OB_DEFAULT_ICON_HEIGHT;

/* the toggled hover mask = the toggled unpressed mask (i.e. no change) */
theme->btn_max->toggled_hover_mask =
RrPixmapMaskCopy(theme->btn_max->toggled_mask);
theme->btn_desk->toggled_hover_mask =
RrPixmapMaskCopy(theme->btn_desk->toggled_mask);
theme->btn_shade->toggled_hover_mask =
RrPixmapMaskCopy(theme->btn_shade->toggled_mask);
/* the toggled pressed mask = the toggled unpressed mask (i.e. no change)*/
theme->btn_max->toggled_pressed_mask =
RrPixmapMaskCopy(theme->btn_max->toggled_mask);
theme->btn_desk->toggled_pressed_mask =
RrPixmapMaskCopy(theme->btn_desk->toggled_mask);
theme->btn_shade->toggled_pressed_mask =
RrPixmapMaskCopy(theme->btn_shade->toggled_mask);

/* read the decoration textures */
READ_APPEARANCE("window.active.title.bg", theme->a_focused_title, FALSE);
READ_APPEARANCE("window.inactive.title.bg", theme->a_unfocused_title,
Expand Down

0 comments on commit f1f5610

Please sign in to comment.