summaryrefslogtreecommitdiff
path: root/libslab/shell-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'libslab/shell-window.c')
-rw-r--r--libslab/shell-window.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libslab/shell-window.c b/libslab/shell-window.c
index 75201d58..0b6df1cb 100644
--- a/libslab/shell-window.c
+++ b/libslab/shell-window.c
@@ -113,8 +113,13 @@ shell_window_handle_size_request (GtkWidget * widget, GtkRequisition * requisiti
height = child_requisiton.height + 10;
if (height > requisition->height)
{
+ gint sc_height;
+
+ gdk_window_get_geometry (gdk_screen_get_root_window (gdk_screen_get_default()),
+ NULL, NULL, NULL, &sc_height);
+
requisition->height =
- MIN (((gfloat) gdk_screen_height () * SIZING_HEIGHT_PERCENT), height);
+ MIN (((gfloat) sc_height * SIZING_HEIGHT_PERCENT), height);
}
}