[gtk/wip/chergert/quartz4u] macos: fix workarea calculation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/quartz4u] macos: fix workarea calculation
- Date: Fri, 8 May 2020 21:06:57 +0000 (UTC)
commit 5be873e8429fb196f8b362eebb8e912ca33e5bf9
Author: Christian Hergert <chergert redhat com>
Date: Fri May 8 14:04:42 2020 -0700
macos: fix workarea calculation
gdk/macos/gdkmacosmonitor.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gdk/macos/gdkmacosmonitor.c b/gdk/macos/gdkmacosmonitor.c
index 80cd56d484..4bb3c195c2 100644
--- a/gdk/macos/gdkmacosmonitor.c
+++ b/gdk/macos/gdkmacosmonitor.c
@@ -63,13 +63,11 @@ gdk_macos_monitor_get_workarea (GdkMonitor *monitor,
{
NSScreen *screen = (NSScreen *)obj;
NSRect visibleFrame = [screen visibleFrame];
- int x;
- int y;
+ int x = visibleFrame.origin.x;
+ int y = visibleFrame.origin.y + visibleFrame.size.height;
_gdk_macos_display_from_display_coords (GDK_MACOS_DISPLAY (monitor->display),
- visibleFrame.origin.x,
- visibleFrame.origin.y,
- &x, &y);
+ x, y, &x, &y);
geometry->x = x;
geometry->y = y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]