[gtk/wip/chergert/quartz4u] macos: swap coordinate for placement of popup surface
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u] macos: swap coordinate for placement of popup surface
- Date: Tue, 12 May 2020 21:25:49 +0000 (UTC)
commit 7a727b25c60b0f7902a0acae3ad937b3422a04cd
Author: Christian Hergert <chergert redhat com>
Date: Tue May 12 14:22:54 2020 -0700
macos: swap coordinate for placement of popup surface
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 69187ac6c3..ed966ae301 100644
--- a/gdk/macos/gdkmacossurface.c
+++ b/gdk/macos/gdkmacossurface.c
@@ -901,16 +901,16 @@ _gdk_macos_surface_move_resize (GdkMacosSurface *self,
display = gdk_surface_get_display (surface);
- _gdk_macos_display_to_display_coords (GDK_MACOS_DISPLAY (display),
- x, y, &x, &y);
-
if (width == -1)
width = surface->width;
if (height == -1)
height = surface->height;
- [priv->window setFrame:NSMakeRect(x, y, width, height)
+ _gdk_macos_display_to_display_coords (GDK_MACOS_DISPLAY (display),
+ x, y, &x, &y);
+
+ [priv->window setFrame:NSMakeRect(x, y - height, width, height)
display:YES];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]