diff options
author | Pablo Barciela <[email protected]> | 2017-12-17 01:11:18 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2017-12-17 01:20:16 +0100 |
commit | d894ddd17e0e46a5cb27a5f851c89f1829cb844a (patch) | |
tree | 3ac9f9cc069251fcc8622c10cf7294af30d75c42 /libmate-desktop/mate-rr-labeler.c | |
parent | 8e7f0805d5b63e562302ddb7dc9a87a2e9f00ba7 (diff) | |
download | mate-desktop-d894ddd17e0e46a5cb27a5f851c89f1829cb844a.tar.bz2 mate-desktop-d894ddd17e0e46a5cb27a5f851c89f1829cb844a.tar.xz |
WidthOfScreen and HeightOfScreen implementation
This commit reverts:
https://github.com/mate-desktop/mate-desktop/commit/6137212bce120c9eb5555ae777fc7fea2f71e43e
And it applies an alternative to fix the deprecated functions:
gdk_screen_get_width
gdk_screen_get_height
Diffstat (limited to 'libmate-desktop/mate-rr-labeler.c')
-rw-r--r-- | libmate-desktop/mate-rr-labeler.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libmate-desktop/mate-rr-labeler.c b/libmate-desktop/mate-rr-labeler.c index 349743f..569f04d 100644 --- a/libmate-desktop/mate-rr-labeler.c +++ b/libmate-desktop/mate-rr-labeler.c @@ -121,9 +121,8 @@ get_work_area (MateRRLabeler *labeler, /* Defaults in case of error */ rect->x = 0; rect->y = 0; - - gdk_window_get_geometry (gdk_screen_get_root_window (labeler->priv->screen), NULL, NULL, - &rect->width, &rect->height); + rect->width = WidthOfScreen (gdk_x11_screen_get_xscreen (labeler->priv->screen)); + rect->height = HeightOfScreen (gdk_x11_screen_get_xscreen (labeler->priv->screen)); if (workarea == None) return FALSE; |