aboutsummaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-17 17:19:13 +0100
committerBert <ber.t@gmx.com>2011-01-17 17:19:13 +0100
commit6e0db8c88def1ba5758c385b7586585bcd251c5f (patch)
treecb1f8322d8a418a71f96d3a0a3b0b66133b5b8c2 /window.c
parent8c240341f1c457b92a703b88087b03ccb774f4d4 (diff)
downloadnsxiv-6e0db8c88def1ba5758c385b7586585bcd251c5f.tar.zst
New BG_COLOR setting in config.h
Diffstat (limited to 'window.c')
-rw-r--r--window.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/window.c b/window.c
index b7732fa..f9852f9 100644
--- a/window.c
+++ b/window.c
@@ -43,10 +43,9 @@ void win_open(win_t *win) {
scrw = DisplayWidth(dpy, scr);
scrh = DisplayHeight(dpy, scr);
- bgcol.red = 0x7000;
- bgcol.green = 0x7000;
- bgcol.blue = 0x7000;
- XAllocColor(dpy, DefaultColormap(dpy, scr), &bgcol);
+ if (!XAllocNamedColor(dpy, DefaultColormap(dpy, scr), BG_COLOR,
+ &bgcol, &bgcol))
+ FATAL("could not allocate color: %s", BG_COLOR);
if (win->w > scrw)
win->w = scrw;