From 0359bb4e4e8825c26bb11919e424e77b2351ae1c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 26 Sep 2008 17:45:52 +0200 Subject: [PATCH] event: only grab root if mouse is on root Signed-off-by: Julien Danjou --- event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.c b/event.c index 42a0abbe2..b6187391e 100644 --- a/event.c +++ b/event.c @@ -433,7 +433,7 @@ event_handle_enternotify(void *data __attribute__ ((unused)), xcb_ungrab_button(globalconf.connection, XCB_BUTTON_INDEX_ANY, xutil_screen_get(connection, emwin->phys_screen)->root, XCB_BUTTON_MASK_ANY); - else + else if(ev->event == ev->root) window_root_buttons_grab(ev->root); return 0;