event: only grab root if mouse is on root
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d23c352fcc
commit
0359bb4e4e
2
event.c
2
event.c
|
@ -433,7 +433,7 @@ event_handle_enternotify(void *data __attribute__ ((unused)),
|
||||||
xcb_ungrab_button(globalconf.connection, XCB_BUTTON_INDEX_ANY,
|
xcb_ungrab_button(globalconf.connection, XCB_BUTTON_INDEX_ANY,
|
||||||
xutil_screen_get(connection, emwin->phys_screen)->root,
|
xutil_screen_get(connection, emwin->phys_screen)->root,
|
||||||
XCB_BUTTON_MASK_ANY);
|
XCB_BUTTON_MASK_ANY);
|
||||||
else
|
else if(ev->event == ev->root)
|
||||||
window_root_buttons_grab(ev->root);
|
window_root_buttons_grab(ev->root);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue