From 1c072cc0d0b06869630bc2d842a28a7899494de8 Mon Sep 17 00:00:00 2001 From: Bert Date: Thu, 17 Feb 2011 14:20:42 +0100 Subject: Fill window before loading thumbs --- window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'window.c') diff --git a/window.c b/window.c index 35a37fe..38501ca 100644 --- a/window.c +++ b/window.c @@ -239,14 +239,13 @@ void win_clear(win_t *win) { return; e = &win->env; + gcval.foreground = win->fullscreen ? BlackPixel(e->dpy, e->scr) : win->bgcol; if (win->pm) XFreePixmap(e->dpy, win->pm); win->pm = XCreatePixmap(e->dpy, win->xwin, e->scrw, e->scrh, e->depth); - gcval.foreground = win->fullscreen ? BlackPixel(e->dpy, e->scr) : win->bgcol; XChangeGC(e->dpy, bgc, GCForeground, &gcval); - XFillRectangle(e->dpy, win->pm, bgc, 0, 0, e->scrw, e->scrh); } -- cgit v1.2.3