summaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2010-04-01 21:40:11 +0100
committerAnselm R Garbe <anselm@garbe.us>2010-04-01 21:40:11 +0100
commit0ba3bae98196ec8a0887f494cb8a2dd5b645f763 (patch)
tree3beb67d9e05f25faee00181fb08b22aaebfc4bb6 /dmenu.c
parentebeb4e4752e33e9a87cbe0725f65595cba0037fa (diff)
applied Troels' patch, thanks Troels!
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dmenu.c b/dmenu.c
index 97014cc..fbbfac0 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -658,6 +658,10 @@ run(void) {
if(ev.xexpose.count == 0)
drawmenu();
break;
+ case VisibilityNotify:
+ if (ev.xvisibility.state != VisibilityUnobscured)
+ XRaiseWindow(dpy, win);
+ break;
}
}
@@ -691,7 +695,7 @@ setup(Bool topbar) {
/* menu window */
wa.override_redirect = True;
wa.background_pixmap = ParentRelative;
- wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask;
+ wa.event_mask = ExposureMask | ButtonPressMask | KeyPressMask | VisibilityChangeMask;
/* menu window geometry */
mh = dc.font.height + 2;