[gtk/present-toplevel-2: 74/79] wayland: Stop using surface types



commit b421b5fb5356e1a1573e36e7b6c097a68d175b29
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 8 13:37:13 2020 -0700

    wayland: Stop using surface types

 gdk/wayland/gdkdevice-wayland.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 09fa321d16..f8206af6c0 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -749,7 +749,7 @@ gdk_wayland_device_grab (GdkDevice    *device,
   GdkWaylandSeat *wayland_seat = GDK_WAYLAND_SEAT (gdk_device_get_seat (device));
   GdkWaylandPointerData *pointer = GDK_WAYLAND_DEVICE (device)->pointer;
 
-  if (gdk_surface_get_surface_type (surface) == GDK_SURFACE_TEMP &&
+  if (GDK_IS_DRAG_SURFACE (surface) &&
       gdk_surface_get_mapped (surface))
     {
       g_warning ("Surface %p is already mapped at the time of grabbing. "


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]