summaryrefslogtreecommitdiff
path: root/app/cwm/screen.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2012-12-18 18:39:56 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2012-12-18 18:39:56 +0000
commit52f4d23c079d0add0ff45e852419068beefe5092 (patch)
tree6eca0f3de86b3a2e08623223ecffc5d85a569229 /app/cwm/screen.c
parentedca43914873b082d611b53c9b0344653f180dbf (diff)
expand CHILDMASK
Diffstat (limited to 'app/cwm/screen.c')
-rw-r--r--app/cwm/screen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/cwm/screen.c b/app/cwm/screen.c
index 2f04911df..acfe5ebfb 100644
--- a/app/cwm/screen.c
+++ b/app/cwm/screen.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: screen.c,v 1.39 2012/12/17 18:34:06 okan Exp $
+ * $OpenBSD: screen.c,v 1.40 2012/12/18 18:39:55 okan Exp $
*/
#include <sys/param.h>
@@ -62,8 +62,9 @@ screen_init(struct screen_ctx *sc, u_int which)
menu_init(sc);
rootattr.cursor = Cursor_normal;
- rootattr.event_mask = CHILDMASK|PropertyChangeMask|EnterWindowMask|
- LeaveWindowMask|ColormapChangeMask|BUTTONMASK;
+ rootattr.event_mask = SubstructureRedirectMask|SubstructureNotifyMask|
+ PropertyChangeMask|EnterWindowMask|LeaveWindowMask|
+ ColormapChangeMask|BUTTONMASK;
XChangeWindowAttributes(X_Dpy, sc->rootwin,
CWEventMask|CWCursor, &rootattr);