GNOME Bugzilla – Bug 788208
gdk_screen_get_monitor_workarea returns screen geometry, not work area
Last modified: 2017-10-11 20:06:39 UTC
From commit 0611cb4823c the following was changed: @@ -877,11 +850,16 @@ gdk_screen_get_monitor_workarea (GdkScreen *screen, gint monitor_num, GdkRectangle *dest) { + GdkMonitor *monitor; + g_return_if_fail (GDK_IS_SCREEN (screen)); - g_return_if_fail (monitor_num >= 0); - g_return_if_fail (monitor_num < gdk_screen_get_n_monitors (screen)); - GDK_SCREEN_GET_CLASS (screen)->get_monitor_workarea (screen, monitor_num, dest); + monitor = get_monitor (screen, monitor_num); + + g_return_if_fail (monitor != NULL); + + /* FIXME */ + gdk_monitor_get_geometry (monitor, dest); } This means that gdk_screen_get_monitor_workarea no longer gets the work area.
This was introduced in 3.22 (master no longer has these legacy functions).
Created attachment 360485 [details] [review] gdk: Fix gdk_screen_get_monitor_workarea not returning work area
This causes the background panel in Control Center to change behaviour (bug 788206).
Review of attachment 360485 [details] [review]: Looks obviously right.