[gtk/present-toplevel-2: 28/59] wayland: Stop using surface types
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 28/59] wayland: Stop using surface types
- Date: Thu, 12 Mar 2020 18:59:46 +0000 (UTC)
commit c2d70ba4b38f835ffff1df346a5fcff2faf4401a
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 f31ff99045..f063563aae 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]