New BG_COLOR setting in config.h
This commit is contained in:
parent
8c240341f1
commit
6e0db8c88d
2
config.h
2
config.h
|
@ -9,3 +9,5 @@
|
||||||
#define ZOOM_MIN 12.5
|
#define ZOOM_MIN 12.5
|
||||||
#define ZOOM_MAX 400
|
#define ZOOM_MAX 400
|
||||||
|
|
||||||
|
/* */
|
||||||
|
#define BG_COLOR "#777777"
|
||||||
|
|
7
window.c
7
window.c
|
@ -43,10 +43,9 @@ void win_open(win_t *win) {
|
||||||
scrw = DisplayWidth(dpy, scr);
|
scrw = DisplayWidth(dpy, scr);
|
||||||
scrh = DisplayHeight(dpy, scr);
|
scrh = DisplayHeight(dpy, scr);
|
||||||
|
|
||||||
bgcol.red = 0x7000;
|
if (!XAllocNamedColor(dpy, DefaultColormap(dpy, scr), BG_COLOR,
|
||||||
bgcol.green = 0x7000;
|
&bgcol, &bgcol))
|
||||||
bgcol.blue = 0x7000;
|
FATAL("could not allocate color: %s", BG_COLOR);
|
||||||
XAllocColor(dpy, DefaultColormap(dpy, scr), &bgcol);
|
|
||||||
|
|
||||||
if (win->w > scrw)
|
if (win->w > scrw)
|
||||||
win->w = scrw;
|
win->w = scrw;
|
||||||
|
|
Loading…
Reference in a new issue