[gtk/wip/chergert/quartz4u: 136/146] macos: allow null surface
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u: 136/146] macos: allow null surface
- Date: Fri, 19 Jun 2020 18:20:15 +0000 (UTC)
commit 53bd483a75359a7a1f04ab3b6229388dafd55bb3
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 18 12:35:20 2020 -0700
macos: allow null surface
gdk/macos/gdkmacosdevice.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacosdevice.c b/gdk/macos/gdkmacosdevice.c
index 33ac9fe3be..454e2f6e9f 100644
--- a/gdk/macos/gdkmacosdevice.c
+++ b/gdk/macos/gdkmacosdevice.c
@@ -160,7 +160,7 @@ gdk_macos_device_query_state (GdkDevice *device,
gint y_tmp;
g_assert (GDK_IS_MACOS_DEVICE (device));
- g_assert (GDK_IS_MACOS_SURFACE (surface));
+ g_assert (!surface || GDK_IS_MACOS_SURFACE (surface));
if (child_surface)
*child_surface = surface;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]