[gtk/present-toplevel-2: 138/178] wayland: Stop using surface types
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 138/178] wayland: Stop using surface types
- Date: Tue, 10 Mar 2020 01:21:32 +0000 (UTC)
commit d36a7b491753bc3ec6690cb2b783ead12544feb3
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]