diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-12-18 14:02:55 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-12-18 14:29:16 -0500 |
commit | c6df2828b7ca6b65b7ab3c328ebb96bd78c087ee (patch) | |
tree | 19922b74f44281c5d4ec3733437523d6b0340e11 /gdk/gdkscreen.h | |
parent | 74cff292d505f8855e78ab0fc37c6ff380d447ca (diff) | |
download | gtk+-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/gdkscreen.h')
-rw-r--r-- | gdk/gdkscreen.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gdk/gdkscreen.h b/gdk/gdkscreen.h index 0f16a8f0f6..a48c48bfe1 100644 --- a/gdk/gdkscreen.h +++ b/gdk/gdkscreen.h @@ -57,11 +57,15 @@ GList * gdk_screen_list_visuals (GdkScreen *screen); GList * gdk_screen_get_toplevel_windows (GdkScreen *screen); gchar * gdk_screen_make_display_name (GdkScreen *screen); -gint gdk_screen_get_n_monitors (GdkScreen *screen); -gint gdk_screen_get_primary_monitor (GdkScreen *screen); -void gdk_screen_get_monitor_geometry (GdkScreen *screen, - gint monitor_num, - GdkRectangle *dest); +gint gdk_screen_get_n_monitors (GdkScreen *screen); +gint gdk_screen_get_primary_monitor (GdkScreen *screen); +void gdk_screen_get_monitor_geometry (GdkScreen *screen, + gint monitor_num, + GdkRectangle *dest); +void gdk_screen_get_monitor_workarea (GdkScreen *screen, + gint monitor_num, + GdkRectangle *area); + gint gdk_screen_get_monitor_at_point (GdkScreen *screen, gint x, gint y); |