[gtk/wip/chergert/quartz4u: 83/146] macos: use gdk_surface_get_mapped()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u: 83/146] macos: use gdk_surface_get_mapped()
- Date: Fri, 19 Jun 2020 18:15:46 +0000 (UTC)
commit 436efc00fbd61290990fe3c6545d9b5905988490
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]