From b383e573a5430c56c75ab469210bbe714c0d83b5 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 18 Dec 2012 18:39:55 +0000 Subject: expand CHILDMASK --- calmwm.h | 3 +-- screen.c | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/calmwm.h b/calmwm.h index 7547b62..14370aa 100644 --- a/calmwm.h +++ b/calmwm.h @@ -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: calmwm.h,v 1.177 2012/12/18 18:35:36 okan Exp $ + * $OpenBSD: calmwm.h,v 1.178 2012/12/18 18:39:55 okan Exp $ */ #ifndef _CALMWM_H_ @@ -44,7 +44,6 @@ #define CONFFILE ".cwmrc" #define WMNAME "CWM" -#define CHILDMASK (SubstructureRedirectMask|SubstructureNotifyMask) #define BUTTONMASK (ButtonPressMask|ButtonReleaseMask) #define MOUSEMASK (BUTTONMASK|PointerMotionMask) #define MENUMASK (MOUSEMASK|ButtonMotionMask|ExposureMask) diff --git a/screen.c b/screen.c index 2f04911..acfe5eb 100644 --- a/screen.c +++ b/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 @@ -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); -- cgit v1.2.3-2-gb3c3