map canvas before moving window

Otherwise on higher load it could happen that for a short moment there's
only a black box shown.
This commit is contained in:
Sascha Kruse 2012-09-15 16:01:39 +02:00
parent afe456c0ba
commit 2c2f5d2d31

View File

@ -696,9 +696,9 @@ void draw_win(void)
} }
/* move and map window */ /* move and map window */
mapdc(dc, win, width, height);
XResizeWindow(dc->dpy, win, width, height); XResizeWindow(dc->dpy, win, width, height);
XMoveWindow(dc->dpy, win, x, y); XMoveWindow(dc->dpy, win, x, y);
mapdc(dc, win, width, height);
free(x_more.txt); free(x_more.txt);
} }