[gtk/wip/chergert/quartz4u] macos: use new coords when calculating offsets
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u] macos: use new coords when calculating offsets
- Date: Thu, 21 May 2020 00:32:50 +0000 (UTC)
commit 531e5a6bb42ac400feead4a4366bb1045fe81df9
Author: Christian Hergert <chergert redhat com>
Date: Wed May 20 17:14:15 2020 -0700
macos: use new coords when calculating offsets
gdk/macos/gdkmacossurface.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gdk/macos/gdkmacossurface.c b/gdk/macos/gdkmacossurface.c
index 89419b4029..3aec88dc91 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -826,13 +826,13 @@ _gdk_macos_surface_move_resize (GdkMacosSurface *self,
if (GDK_IS_MACOS_SURFACE (surface->parent))
{
- surface->x = self->root_x - GDK_MACOS_SURFACE (surface->parent)->root_x;
- surface->y = self->root_y - GDK_MACOS_SURFACE (surface->parent)->root_y;
+ surface->x = x - GDK_MACOS_SURFACE (surface->parent)->root_x;
+ surface->y = y - GDK_MACOS_SURFACE (surface->parent)->root_y;
}
else
{
- surface->x = self->root_x;
- surface->y = self->root_y;
+ surface->x = x;
+ surface->y = y;
}
_gdk_macos_display_to_display_coords (GDK_MACOS_DISPLAY (display),
@@ -844,7 +844,6 @@ _gdk_macos_surface_move_resize (GdkMacosSurface *self,
if (size_changed)
gdk_surface_invalidate_rect (surface, NULL);
-
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]