[gtk/wip/chergert/quartz4u: 743/782] macos: fix coordinates when intersecting monitors



commit 61f5d339b367711c1a2683f78e32ef99bcc8ce6f
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 19 17:29:04 2020 -0700

    macos: fix coordinates when intersecting monitors

 gdk/macos/gdkmacossurface.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index e07e5a698d..9e384a20e4 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -881,8 +881,8 @@ _gdk_macos_surface_monitor_changed (GdkMacosSurface *self)
 
   g_return_if_fail (GDK_IS_MACOS_SURFACE (self));
 
-  rect.x = GDK_SURFACE (self)->x;
-  rect.y = GDK_SURFACE (self)->y;
+  rect.x = self->root_x;
+  rect.y = self->root_y;
   rect.width = GDK_SURFACE (self)->width;
   rect.height = GDK_SURFACE (self)->height;
 
@@ -926,8 +926,8 @@ _gdk_macos_surface_get_best_monitor (GdkMacosSurface *self)
 
   g_return_val_if_fail (GDK_IS_MACOS_SURFACE (self), NULL);
 
-  rect.x = GDK_SURFACE (self)->x;
-  rect.y = GDK_SURFACE (self)->y;
+  rect.x = self->root_x;
+  rect.y = self->root_y;
   rect.width = GDK_SURFACE (self)->width;
   rect.height = GDK_SURFACE (self)->height;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]