[gtk/wip/chergert/quartz4u] macos: use gdk_surface_get_mapped()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u] macos: use gdk_surface_get_mapped()
- Date: Tue, 19 May 2020 18:46:50 +0000 (UTC)
commit 95fd5e72a31864bd8dd2ef8f7eafb7c552737a7b
Author: Christian Hergert <chergert redhat com>
Date: Tue May 19 11:45:51 2020 -0700
macos: use gdk_surface_get_mapped()
gdk/macos/gdkmacosdisplay.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gdk/macos/gdkmacosdisplay.c b/gdk/macos/gdkmacosdisplay.c
index b16ce8529c..ca12940d55 100644
--- a/gdk/macos/gdkmacosdisplay.c
+++ b/gdk/macos/gdkmacosdisplay.c
@@ -841,10 +841,11 @@ _gdk_macos_display_get_surface_at_coords (GdkMacosDisplay *self,
g_assert (GDK_IS_MACOS_SURFACE (surface));
- nswindow = _gdk_macos_surface_get_native (GDK_MACOS_SURFACE (surface));
- if (![nswindow isVisible])
+ if (!gdk_surface_get_mapped (surface))
continue;
+ nswindow = _gdk_macos_surface_get_native (GDK_MACOS_SURFACE (surface));
+
if (x >= surface->x &&
y >= surface->y &&
x <= (surface->x + surface->width) &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]