[gtk/wip/chergert/quartz4u: 129/142] macos: allow null surface
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u: 129/142] macos: allow null surface
- Date: Tue, 23 Jun 2020 18:40:38 +0000 (UTC)
commit 3642e768b55e5a082382f89649591c68f169d44b
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]