mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
pointer: Make sure to care about FFM even if the client didn't get a
resource
This commit is contained in:
parent
2bcd4ab159
commit
7560aaee73
@ -347,6 +347,12 @@ meta_wayland_pointer_set_focus (MetaWaylandPointer *pointer,
|
|||||||
pointer->focus_surface = surface;
|
pointer->focus_surface = surface;
|
||||||
wl_resource_add_destroy_listener (pointer->focus_surface->resource, &pointer->focus_surface_listener);
|
wl_resource_add_destroy_listener (pointer->focus_surface->resource, &pointer->focus_surface_listener);
|
||||||
|
|
||||||
|
meta_window_handle_enter (pointer->focus_surface->window,
|
||||||
|
/* XXX -- can we reliably get a timestamp for setting focus? */
|
||||||
|
clutter_get_current_event_time (),
|
||||||
|
wl_fixed_to_int (pointer->x),
|
||||||
|
wl_fixed_to_int (pointer->y));
|
||||||
|
|
||||||
pointer->focus_resource = find_resource_for_surface (&pointer->resource_list, surface);
|
pointer->focus_resource = find_resource_for_surface (&pointer->resource_list, surface);
|
||||||
if (pointer->focus_resource)
|
if (pointer->focus_resource)
|
||||||
{
|
{
|
||||||
@ -354,12 +360,6 @@ meta_wayland_pointer_set_focus (MetaWaylandPointer *pointer,
|
|||||||
struct wl_display *display = wl_client_get_display (client);
|
struct wl_display *display = wl_client_get_display (client);
|
||||||
uint32_t serial = wl_display_next_serial (display);
|
uint32_t serial = wl_display_next_serial (display);
|
||||||
|
|
||||||
meta_window_handle_enter (pointer->focus_surface->window,
|
|
||||||
/* XXX -- can we reliably get a timestamp for setting focus? */
|
|
||||||
clutter_get_current_event_time (),
|
|
||||||
wl_fixed_to_int (pointer->x),
|
|
||||||
wl_fixed_to_int (pointer->y));
|
|
||||||
|
|
||||||
{
|
{
|
||||||
wl_fixed_t sx, sy;
|
wl_fixed_t sx, sy;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user