only react to Expose events when we are running
This commit is contained in:
parent
b074699a0a
commit
a509b80c47
5
dunst.c
5
dunst.c
@ -804,9 +804,10 @@ void handleXEvents(void)
|
|||||||
XNextEvent(dc->dpy, &ev);
|
XNextEvent(dc->dpy, &ev);
|
||||||
switch (ev.type) {
|
switch (ev.type) {
|
||||||
case Expose:
|
case Expose:
|
||||||
if (ev.xexpose.count == 0)
|
if (ev.xexpose.count == 0 && visible) {
|
||||||
draw_win();
|
draw_win();
|
||||||
mapdc(dc, win, scr.dim.w, font_h);
|
mapdc(dc, win, scr.dim.w, font_h);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SelectionNotify:
|
case SelectionNotify:
|
||||||
if (ev.xselection.property == utf8)
|
if (ev.xselection.property == utf8)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user