summaryrefslogtreecommitdiff
path: root/src/gs-manager.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-08-10 02:02:48 +0200
committerZenWalker <[email protected]>2017-08-10 02:02:48 +0200
commit816394c1a6ce9968dba3e1b0ecc884c8ccca4d43 (patch)
treecc3d7609ed335e979d5d23afcb60609f2f645cbb /src/gs-manager.c
parenta96cc1c494032c740b5ebda705992213609fbb18 (diff)
downloadmate-screensaver-816394c1a6ce9968dba3e1b0ecc884c8ccca4d43.tar.bz2
mate-screensaver-816394c1a6ce9968dba3e1b0ecc884c8ccca4d43.tar.xz
avoid deprecated gdk_screen_get_width/height
Diffstat (limited to 'src/gs-manager.c')
-rw-r--r--src/gs-manager.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gs-manager.c b/src/gs-manager.c
index 34e1f1f..03ee338 100644
--- a/src/gs-manager.c
+++ b/src/gs-manager.c
@@ -1320,8 +1320,10 @@ apply_background_to_window (GSManager *manager,
display = gs_window_get_display (window);
screen = gdk_display_get_default_screen (display);
- width = gdk_screen_get_width (screen);
- height = gdk_screen_get_height (screen);
+
+ gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL,
+ &width, &height);
+
gs_debug ("Creating background w:%d h:%d", width, height);
surface = mate_bg_create_surface (manager->priv->bg,
gs_window_get_gdk_window (window),