applied Troels' patch, thanks Troels!
parent
ebeb4e4752
commit
0ba3bae981
6
dmenu.c
6
dmenu.c
|
@ -658,6 +658,10 @@ run(void) {
|
||||||
if(ev.xexpose.count == 0)
|
if(ev.xexpose.count == 0)
|
||||||
drawmenu();
|
drawmenu();
|
||||||
break;
|
break;
|
||||||
|
case VisibilityNotify:
|
||||||
|
if (ev.xvisibility.state != VisibilityUnobscured)
|
||||||
|
XRaiseWindow(dpy, win);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -691,7 +695,7 @@ setup(Bool topbar) {
|
||||||
/* menu window */
|
/* menu window */
|
||||||
wa.override_redirect = True;
|
wa.override_redirect = True;
|
||||||
wa.background_pixmap = ParentRelative;
|
wa.background_pixmap = ParentRelative;
|
||||||
wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
|
wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask | VisibilityChangeMask;
|
||||||
|
|
||||||
/* menu window geometry */
|
/* menu window geometry */
|
||||||
mh = dc.font.height + 2;
|
mh = dc.font.height + 2;
|
||||||
|
|
Loading…
Reference in New Issue