summaryrefslogtreecommitdiff
path: root/gdk/quartz
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-12-18 14:02:55 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-12-18 14:29:16 -0500
commitc6df2828b7ca6b65b7ab3c328ebb96bd78c087ee (patch)
tree19922b74f44281c5d4ec3733437523d6b0340e11 /gdk/quartz
parent74cff292d505f8855e78ab0fc37c6ff380d447ca (diff)
downloadgtk+-c6df2828b7ca6b65b7ab3c328ebb96bd78c087ee.tar.gz
Add gdk_screen_get_monitor_workarea
The function returns the part of a monitors area that should be used for positioning popups, menus, etc. The only non-trivial implementation atm is in the X backend, all the other backends just return the full monitor area. The X implementation is currently suboptimal, since it requires roundtrips to collect the necessary information. It should be changed to monitor the properties for changes, when XFixes allows to monitor individual properties. https://bugzilla.gnome.org/show_bug.cgi?id=641999
Diffstat (limited to 'gdk/quartz')
-rw-r--r--gdk/quartz/gdkscreen-quartz.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c
index 678a947243..d104571ce6 100644
--- a/gdk/quartz/gdkscreen-quartz.c
+++ b/gdk/quartz/gdkscreen-quartz.c
@@ -462,6 +462,7 @@ gdk_quartz_screen_class_init (GdkQuartzScreenClass *klass)
screen_class->get_monitor_height_mm = gdk_quartz_screen_get_monitor_height_mm;
screen_class->get_monitor_plug_name = gdk_quartz_screen_get_monitor_plug_name;
screen_class->get_monitor_geometry = gdk_quartz_screen_get_monitor_geometry;
+ screen_class->get_monitor_workarea = gdk_quartz_screen_get_monitor_geometry;
screen_class->is_composited = gdk_quartz_screen_is_composited;
screen_class->make_display_name = gdk_quartz_screen_make_display_name;
screen_class->get_active_window = gdk_quartz_screen_get_active_window;