From: Michael Stapelberg Date: Sun, 6 Mar 2011 20:49:53 +0000 (+0100) Subject: x: remove XCB_EVENT_MASK_ENTER_WINDOW from child event mask, already handled in parent X-Git-Tag: tree-pr2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1585c36ab2bda83694e23a99ff41c6e256fb690a;p=i3%2Fi3 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. --- 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 */ \