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:
Carlos Garnacho 2014-10-20 18:41:22 +02:00
parent 8819d9ce66
commit 7c5989c978

View File

@ -518,10 +518,11 @@ 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);
meta_window_handle_enter (pointer->focus_surface->window, if (pointer->focus_surface->window)
/* XXX -- can we reliably get a timestamp for setting focus? */ meta_window_handle_enter (pointer->focus_surface->window,
clutter_get_current_event_time (), /* XXX -- can we reliably get a timestamp for setting focus? */
pos.x, pos.y); clutter_get_current_event_time (),
pos.x, pos.y);
move_resources_for_client (&pointer->focus_resource_list, move_resources_for_client (&pointer->focus_resource_list,
&pointer->resource_list, &pointer->resource_list,