[gtk/wip/chergert/quartz4u] macos: use visible frame instead of whole monitor
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u] macos: use visible frame instead of whole monitor
- Date: Thu, 21 May 2020 16:48:53 +0000 (UTC)
commit 1dcf5206d6fcd84aed5389157c364011445d818f
Author: Christian Hergert <chergert redhat com>
Date: Thu May 21 09:04:11 2020 -0700
macos: use visible frame instead of whole monitor
gdk/macos/gdkmacostoplevelsurface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacostoplevelsurface.c b/gdk/macos/gdkmacostoplevelsurface.c
index 66a83958ed..7734b20420 100644
--- a/gdk/macos/gdkmacostoplevelsurface.c
+++ b/gdk/macos/gdkmacostoplevelsurface.c
@@ -484,7 +484,7 @@ _gdk_macos_toplevel_surface_new (GdkMacosDisplay *display,
_gdk_macos_display_to_display_coords (display, x, y, &nx, &ny);
screen = _gdk_macos_display_get_screen_at_display_coords (display, nx, ny);
- screen_rect = [screen frame];
+ screen_rect = [screen visibleFrame];
nx -= screen_rect.origin.x;
ny -= screen_rect.origin.y;
content_rect = NSMakeRect (nx, ny - height, width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]