From c6df2828b7ca6b65b7ab3c328ebb96bd78c087ee Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 18 Dec 2011 14:02:55 -0500 Subject: 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 --- gdk/quartz/gdkscreen-quartz.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdk/quartz') 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; -- cgit v1.2.1