mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 22:28:02 +01:00
Make window border colours configurable.
Use the new preferences FrameBorderColor and FrameSelectedBorderColor to set the border colour of frame windows and selected frame windows respectively.
This commit is contained in:
committed by
Carlos R. Mafra
parent
c3a2438fac
commit
dee30d06ac
16
src/screen.c
16
src/screen.c
@@ -653,13 +653,6 @@ WScreen *wScreenInit(int screen_number)
|
||||
scr->light_pixel = WMColorPixel(scr->gray);
|
||||
scr->dark_pixel = WMColorPixel(scr->darkGray);
|
||||
|
||||
{
|
||||
XColor xcol;
|
||||
/* frame boder color */
|
||||
wGetColor(scr, FRAME_BORDER_COLOR, &xcol);
|
||||
scr->frame_border_pixel = xcol.pixel;
|
||||
}
|
||||
|
||||
/* create GCs with default values */
|
||||
allocGCs(scr);
|
||||
|
||||
@@ -671,6 +664,15 @@ WScreen *wScreenInit(int screen_number)
|
||||
/* read defaults for this screen */
|
||||
wReadDefaults(scr, WDWindowMaker->dictionary);
|
||||
|
||||
{
|
||||
XColor xcol;
|
||||
/* frame boder color */
|
||||
wGetColor(scr, WMGetColorRGBDescription(scr->frame_border_color), &xcol);
|
||||
scr->frame_border_pixel = xcol.pixel;
|
||||
wGetColor(scr, WMGetColorRGBDescription(scr->frame_selected_border_color), &xcol);
|
||||
scr->frame_selected_border_pixel = xcol.pixel;
|
||||
}
|
||||
|
||||
createInternalWindows(scr);
|
||||
|
||||
wNETWMInitStuff(scr);
|
||||
|
||||
Reference in New Issue
Block a user