[gtk/wip/chergert/quartz4u: 108/146] 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: 108/146] macos: use visible frame instead of whole monitor
- Date: Fri, 19 Jun 2020 18:17:53 +0000 (UTC)
commit 45c1c759b700039c3c2243c1ff681a3affdb786d
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]