event: only grab root if mouse is on root

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-26 17:45:52 +02:00
parent d23c352fcc
commit 0359bb4e4e
1 changed files with 1 additions and 1 deletions

View File

@ -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;