From 1585c36ab2bda83694e23a99ff41c6e256fb690a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 6 Mar 2011 21:49:53 +0100 Subject: [PATCH] x: remove XCB_EVENT_MASK_ENTER_WINDOW from child event mask, already handled in parent This prevents unwanted EnterNotifys when switching cons in a stacked con with an h-split as second child in the stacked con. --- include/xcb.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/xcb.h b/include/xcb.h index 4b01d900..1dc141e6 100644 --- a/include/xcb.h +++ b/include/xcb.h @@ -32,8 +32,7 @@ while rendering the layout) */ /** The XCB_CW_EVENT_MASK for the child (= real window) */ #define CHILD_EVENT_MASK (XCB_EVENT_MASK_PROPERTY_CHANGE | \ - XCB_EVENT_MASK_STRUCTURE_NOTIFY | \ - XCB_EVENT_MASK_ENTER_WINDOW) + XCB_EVENT_MASK_STRUCTURE_NOTIFY) /** The XCB_CW_EVENT_MASK for its frame */ #define FRAME_EVENT_MASK (XCB_EVENT_MASK_BUTTON_PRESS | /* …mouse is pressed/released */ \