only react to Expose events when we are running

This commit is contained in:
Sascha Kruse 2012-12-05 18:14:09 +01:00
parent b074699a0a
commit a509b80c47

View File

@ -804,9 +804,10 @@ void handleXEvents(void)
XNextEvent(dc->dpy, &ev);
switch (ev.type) {
case Expose:
if (ev.xexpose.count == 0)
if (ev.xexpose.count == 0 && visible) {
draw_win();
mapdc(dc, win, scr.dim.w, font_h);
mapdc(dc, win, scr.dim.w, font_h);
}
break;
case SelectionNotify:
if (ev.xselection.property == utf8)