libgimpwidgets, app: add gdk_screen_get_monitor_workarea()

to the gimp3migration hack and use it where appropriate, so in the
gtk3-port branch windows will not overlap with docks, panels etc.
This commit is contained in:
Michael Natterer
2014-05-19 14:37:32 +02:00
parent 35f8355af4
commit bbf01ebabf
11 changed files with 32 additions and 11 deletions

View File

@ -23,6 +23,8 @@
#include <gegl.h>
#include <gtk/gtk.h>
#include "libgimpwidgets/gimpwidgets.h"
#include "gui-types.h"
#include "core/gimp.h"
@ -348,7 +350,7 @@ gimp_ui_configurer_move_docks_to_window (GimpUIConfigurer *ui_configurer,
screen = gtk_widget_get_screen (GTK_WIDGET (dock_columns));
monitor = gimp_widget_get_monitor (GTK_WIDGET (dock_columns));
gdk_screen_get_monitor_geometry (screen, monitor, &monitor_rect);
gdk_screen_get_monitor_workarea (screen, monitor, &monitor_rect);
/* Remember the size so we can set the new dock window to the same
* size