Xinqi Bao's Git
projects
/
dmenu.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
ebeb4e4
)
applied Troels' patch, thanks Troels!
author
Anselm R Garbe <
[email protected]
>
Thu, 1 Apr 2010 20:40:11 +0000
(21:40 +0100)
committer
Anselm R Garbe <
[email protected]
>
Thu, 1 Apr 2010 20:40:11 +0000
(21:40 +0100)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index
97014cc
..
fbbfac0
100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-658,6
+658,10
@@
run(void) {
if(ev.xexpose.count == 0)
drawmenu();
break;
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;
/* 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;
/* menu window geometry */
mh = dc.font.height + 2;