diff options
Diffstat (limited to 'src/winwidget.c')
-rw-r--r-- | src/winwidget.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/winwidget.c b/src/winwidget.c index a678781..2ad2892 100644 --- a/src/winwidget.c +++ b/src/winwidget.c @@ -350,7 +350,10 @@ void winwidget_setup_pixmaps(winwidget winwid) if (winwid->gc == None) { XGCValues gcval; - gcval.foreground = BlackPixel(disp, DefaultScreen(disp)); + if (!strcmp(opt.image_bg, "white")) + gcval.foreground = WhitePixel(disp, DefaultScreen(disp)); + else + gcval.foreground = BlackPixel(disp, DefaultScreen(disp)); winwid->gc = XCreateGC(disp, winwid->win, GCForeground, &gcval); } winwid->bg_pmap = XCreatePixmap(disp, winwid->win, scr->width, scr->height, depth); |