only react to Expose events when we are running
This commit is contained in:
parent
b074699a0a
commit
a509b80c47
3
dunst.c
3
dunst.c
@ -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);
|
||||
}
|
||||
break;
|
||||
case SelectionNotify:
|
||||
if (ev.xselection.property == utf8)
|
||||
|
Loading…
x
Reference in New Issue
Block a user