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
This commit is contained in:
@ -222,6 +222,7 @@ gdk_win32_screen_class_init (GdkWin32ScreenClass *klass)
|
||||
screen_class->get_monitor_height_mm = gdk_win32_screen_get_monitor_height_mm;
|
||||
screen_class->get_monitor_plug_name = gdk_win32_screen_get_monitor_plug_name;
|
||||
screen_class->get_monitor_geometry = gdk_win32_screen_get_monitor_geometry;
|
||||
screen_class->get_monitor_workarea = gdk_win32_screen_get_monitor_geometry;
|
||||
screen_class->get_system_visual = _gdk_win32_screen_get_system_visual;
|
||||
screen_class->get_rgba_visual = gdk_win32_screen_get_rgba_visual;
|
||||
screen_class->is_composited = gdk_win32_screen_is_composited;
|
||||
@ -238,4 +239,4 @@ gdk_win32_screen_class_init (GdkWin32ScreenClass *klass)
|
||||
screen_class->query_depths = _gdk_win32_screen_query_depths;
|
||||
screen_class->query_visual_types = _gdk_win32_screen_query_visual_types;
|
||||
screen_class->list_visuals = _gdk_win32_screen_list_visuals;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user