forked from AuroraMiddleware/gtk
wayland: Only process the event if it's for a GdkWindow
When we combine GTK with Clutter we will receive events for both surfaces that we have created as well as those created by Clutter.
This commit is contained in:
parent
17778499fa
commit
e8e6ae8189
@ -598,6 +598,8 @@ pointer_handle_enter (void *data,
|
||||
|
||||
if (!surface)
|
||||
return;
|
||||
if (!GDK_IS_WINDOW (wl_surface_get_user_data (surface)))
|
||||
return;
|
||||
|
||||
_gdk_wayland_display_update_serial (wayland_display, serial);
|
||||
|
||||
@ -641,6 +643,8 @@ pointer_handle_leave (void *data,
|
||||
|
||||
if (!surface)
|
||||
return;
|
||||
if (!GDK_IS_WINDOW (wl_surface_get_user_data (surface)))
|
||||
return;
|
||||
|
||||
_gdk_wayland_display_update_serial (wayland_display, serial);
|
||||
|
||||
@ -844,6 +848,8 @@ keyboard_handle_enter (void *data,
|
||||
|
||||
if (!surface)
|
||||
return;
|
||||
if (!GDK_IS_WINDOW (wl_surface_get_user_data (surface)))
|
||||
return;
|
||||
|
||||
_gdk_wayland_display_update_serial (wayland_display, serial);
|
||||
|
||||
@ -878,6 +884,8 @@ keyboard_handle_leave (void *data,
|
||||
|
||||
if (!surface)
|
||||
return;
|
||||
if (!GDK_IS_WINDOW (wl_surface_get_user_data (surface)))
|
||||
return;
|
||||
|
||||
_gdk_wayland_display_update_serial (wayland_display, serial);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user