mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-14 06:59:46 -05:00
compositor-x11: Don't send enter/leave notify if we have an implicit grab
This commit is contained in:
parent
3eff366911
commit
2dfe626f4e
1 changed files with 4 additions and 0 deletions
|
|
@ -614,6 +614,8 @@ x11_compositor_handle_event(int fd, uint32_t mask, void *data)
|
||||||
|
|
||||||
case XCB_ENTER_NOTIFY:
|
case XCB_ENTER_NOTIFY:
|
||||||
enter_notify = (xcb_enter_notify_event_t *) event;
|
enter_notify = (xcb_enter_notify_event_t *) event;
|
||||||
|
if (enter_notify->state >= Button1Mask)
|
||||||
|
break;
|
||||||
output = x11_compositor_find_output(c, enter_notify->event);
|
output = x11_compositor_find_output(c, enter_notify->event);
|
||||||
notify_pointer_focus(c->base.input_device,
|
notify_pointer_focus(c->base.input_device,
|
||||||
enter_notify->time,
|
enter_notify->time,
|
||||||
|
|
@ -624,6 +626,8 @@ x11_compositor_handle_event(int fd, uint32_t mask, void *data)
|
||||||
|
|
||||||
case XCB_LEAVE_NOTIFY:
|
case XCB_LEAVE_NOTIFY:
|
||||||
enter_notify = (xcb_enter_notify_event_t *) event;
|
enter_notify = (xcb_enter_notify_event_t *) event;
|
||||||
|
if (enter_notify->state >= Button1Mask)
|
||||||
|
break;
|
||||||
notify_pointer_focus(c->base.input_device,
|
notify_pointer_focus(c->base.input_device,
|
||||||
enter_notify->time,
|
enter_notify->time,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue