summaryrefslogtreecommitdiff
path: root/src/daemon/stack.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2017-12-12 20:36:29 +0100
committerPablo Barciela <[email protected]>2017-12-12 20:44:34 +0100
commit34faef680f7b084a1e9d844a438473c90f7d2224 (patch)
tree57939899c0fa2456be284fdc4edd1276b17a3f4c /src/daemon/stack.c
parentf981a2b53fe54e3489d3b14aa0dd04047d3cd6aa (diff)
downloadmate-notification-daemon-34faef680f7b084a1e9d844a438473c90f7d2224.tar.bz2
mate-notification-daemon-34faef680f7b084a1e9d844a438473c90f7d2224.tar.xz
WidthOfScreen and HeightOfScreen implementation
This commit reverts: https://github.com/mate-desktop/mate-notification-daemon/commit/52b7c3807e71278f2d902a79cf6c08c839a1b0ad And it applies an alternative to fix the deprecated functions: gdk_screen_get_width gdk_screen_get_height
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;