mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
- More cleanups for obsoleted xxx_gc's and xxx_pixel's in WScreen
This commit is contained in:
@@ -2999,8 +2999,6 @@ setClipTitleColor(WScreen *scr, WDefaultEntry *entry, XColor *color, long index)
|
||||
scr->clip_title_color[index] = WMCreateRGBColor(scr->wmscreen, color->red,
|
||||
color->green, color->blue,
|
||||
True);
|
||||
wFreeColor(scr, color->pixel);
|
||||
|
||||
#ifdef GRADIENT_CLIP_ARROW
|
||||
if (index == CLIP_NORMAL) {
|
||||
RImage *image;
|
||||
@@ -3024,6 +3022,8 @@ setClipTitleColor(WScreen *scr, WDefaultEntry *entry, XColor *color, long index)
|
||||
}
|
||||
#endif /* GRADIENT_CLIP_ARROW */
|
||||
|
||||
wFreeColor(scr, color->pixel);
|
||||
|
||||
return REFRESH_ICON_TITLE_COLOR;
|
||||
}
|
||||
|
||||
@@ -3038,9 +3038,6 @@ setWTitleColor(WScreen *scr, WDefaultEntry *entry, XColor *color, long index)
|
||||
WMCreateRGBColor(scr->wmscreen, color->red, color->green, color->blue,
|
||||
True);
|
||||
|
||||
if (index == WS_UNFOCUSED)
|
||||
XSetForeground(dpy, scr->info_text_gc, color->pixel);
|
||||
|
||||
wFreeColor(scr, color->pixel);
|
||||
|
||||
return REFRESH_WINDOW_TITLE_COLOR;
|
||||
|
||||
Reference in New Issue
Block a user