projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eff366
)
compositor-x11: Don't send enter/leave notify if we have an implicit grab
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 8 Feb 2011 16:59:53 +0000
(11:59 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 8 Feb 2011 17:00:55 +0000
(12:00 -0500)
compositor/compositor-x11.c
patch
|
blob
|
history
diff --git
a/compositor/compositor-x11.c
b/compositor/compositor-x11.c
index
7ca3fdb
..
4365c0a
100644
(file)
--- a/
compositor/compositor-x11.c
+++ b/
compositor/compositor-x11.c
@@
-614,6
+614,8
@@
x11_compositor_handle_event(int fd, uint32_t mask, void *data)
case XCB_ENTER_NOTIFY:
enter_notify = (xcb_enter_notify_event_t *) event;
+ if (enter_notify->state >= Button1Mask)
+ break;
output = x11_compositor_find_output(c, enter_notify->event);
notify_pointer_focus(c->base.input_device,
enter_notify->time,
@@
-624,6
+626,8
@@
x11_compositor_handle_event(int fd, uint32_t mask, void *data)
case XCB_LEAVE_NOTIFY:
enter_notify = (xcb_enter_notify_event_t *) event;
+ if (enter_notify->state >= Button1Mask)
+ break;
notify_pointer_focus(c->base.input_device,
enter_notify->time,
NULL,