summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-labeler.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-08 20:47:05 +0200
committerraveit65 <[email protected]>2017-08-16 22:20:50 +0200
commit6137212bce120c9eb5555ae777fc7fea2f71e43e (patch)
tree0642e60e10f8583cbe7e4880d31ec5f0a279f1df /libmate-desktop/mate-rr-labeler.c
parent0e2e562d78ead7e685e6a01749571ee5234fbf2c (diff)
downloadmate-desktop-6137212bce120c9eb5555ae777fc7fea2f71e43e.tar.bz2
mate-desktop-6137212bce120c9eb5555ae777fc7fea2f71e43e.tar.xz
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'libmate-desktop/mate-rr-labeler.c')
-rw-r--r--libmate-desktop/mate-rr-labeler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libmate-desktop/mate-rr-labeler.c b/libmate-desktop/mate-rr-labeler.c
index de65423..72b9585 100644
--- a/libmate-desktop/mate-rr-labeler.c
+++ b/libmate-desktop/mate-rr-labeler.c
@@ -121,8 +121,9 @@ get_work_area (MateRRLabeler *labeler,
/* Defaults in case of error */
rect->x = 0;
rect->y = 0;
- rect->width = gdk_screen_get_width (labeler->priv->screen);
- rect->height = gdk_screen_get_height (labeler->priv->screen);
+
+ gdk_window_get_geometry (gdk_screen_get_root_window (labeler->priv->screen), NULL, NULL,
+ &rect->width, &rect->height);
if (workarea == None)
return FALSE;