diff options
author | ZenWalker <[email protected]> | 2017-08-08 02:43:13 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-13 10:56:16 +0200 |
commit | 52b7c3807e71278f2d902a79cf6c08c839a1b0ad (patch) | |
tree | d7d79401700839d52a50309418b309baa8ca05e7 /src/daemon | |
parent | c11a2ac7a568b83fb0327e831519981a465bc51f (diff) | |
download | mate-notification-daemon-52b7c3807e71278f2d902a79cf6c08c839a1b0ad.tar.bz2 mate-notification-daemon-52b7c3807e71278f2d902a79cf6c08c839a1b0ad.tar.xz |
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/stack.c | 5 |
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; |