[hackers] [dmenu] applied Troels' patch, thanks Troels! || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Thu, 1 Apr 2010 20:40:17 +0000 (UTC)

changeset: 295:c12572045630
tag: tip
user: Anselm R Garbe <anselm_AT_garbe.us>
date: Thu Apr 01 21:40:11 2010 +0100
files: dmenu.c
description:
applied Troels' patch, thanks Troels!

diff -r e03fce8e133b -r c12572045630 dmenu.c
--- a/dmenu.c Thu Apr 01 21:32:06 2010 +0100
+++ b/dmenu.c Thu Apr 01 21:40:11 2010 +0100
@@ -658,6 +658,10 @@
                         if(ev.xexpose.count == 0)
                                 drawmenu();
                         break;
+ case VisibilityNotify:
+ if (ev.xvisibility.state != VisibilityUnobscured)
+ XRaiseWindow(dpy, win);
+ break;
                 }
 }
 
@@ -691,7 +695,7 @@
         /* 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;
Received on Thu Apr 01 2010 - 20:40:17 UTC

This archive was generated by hypermail 2.2.0 : Thu Apr 01 2010 - 20:48:12 UTC