mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
wayland: Avoid MetaWindow call on non window-backed surfaces
Crossing events may also be gotten on subsurfaces. https://bugzilla.gnome.org/show_bug.cgi?id=738890
This commit is contained in:
parent
8819d9ce66
commit
7c5989c978
@ -518,6 +518,7 @@ meta_wayland_pointer_set_focus (MetaWaylandPointer *pointer,
|
|||||||
|
|
||||||
clutter_input_device_get_coords (pointer->device, NULL, &pos);
|
clutter_input_device_get_coords (pointer->device, NULL, &pos);
|
||||||
|
|
||||||
|
if (pointer->focus_surface->window)
|
||||||
meta_window_handle_enter (pointer->focus_surface->window,
|
meta_window_handle_enter (pointer->focus_surface->window,
|
||||||
/* XXX -- can we reliably get a timestamp for setting focus? */
|
/* XXX -- can we reliably get a timestamp for setting focus? */
|
||||||
clutter_get_current_event_time (),
|
clutter_get_current_event_time (),
|
||||||
|
Loading…
Reference in New Issue
Block a user