1
0
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:
dan
2002-10-18 04:04:41 +00:00
parent 5230a57599
commit 7be0a97998
4 changed files with 8 additions and 19 deletions

View File

@@ -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;