summaryrefslogtreecommitdiff
path: root/src/daemon/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/stack.c')
-rw-r--r--src/daemon/stack.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/stack.c b/src/daemon/stack.c
index 38f9ed5..a173b5e 100644
--- a/src/daemon/stack.c
+++ b/src/daemon/stack.c
@@ -71,8 +71,9 @@ get_work_area (NotifyStack *stack,
/* Defaults in case of error */
rect->x = 0;
rect->y = 0;
- rect->width = gdk_screen_get_width (stack->screen);
- rect->height = gdk_screen_get_height (stack->screen);
+
+ gdk_window_get_geometry (gdk_screen_get_root_window (stack->screen), NULL, NULL,
+ &rect->width, &rect->height);
if (workarea == None)
return FALSE;