[gtk/wip/chergert/quartz4u: 63/65] macos: update x, y when moving surface



commit 1fb0f85e853377a343fb7194fa10a4dc27c6c58d
Author: Christian Hergert <chergert redhat com>
Date:   Wed May 13 16:54:06 2020 -0700

    macos: update x,y when moving surface

 gdk/macos/gdkmacossurface.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 659d599299..157b8c22c2 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -814,6 +814,9 @@ _gdk_macos_surface_move_resize (GdkMacosSurface *self,
   if (height == -1)
     height = surface->height;
 
+  surface->x = x;
+  surface->y = y;
+
   _gdk_macos_display_to_display_coords (GDK_MACOS_DISPLAY (display),
                                         x, y, &x, &y);
 


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