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, 2 insertions, 3 deletions
diff --git a/src/daemon/stack.c b/src/daemon/stack.c
index c5ee8e3..25514f7 100644
--- a/src/daemon/stack.c
+++ b/src/daemon/stack.c
@@ -75,9 +75,8 @@ get_work_area (NotifyStack *stack,
/* Defaults in case of error */
rect->x = 0;
rect->y = 0;
-
- gdk_window_get_geometry (gdk_screen_get_root_window (stack->screen), NULL, NULL,
- &rect->width, &rect->height);
+ rect->width = WidthOfScreen (gdk_x11_screen_get_xscreen (stack->screen));
+ rect->height = HeightOfScreen (gdk_x11_screen_get_xscreen (stack->screen));
if (workarea == None)
return FALSE;