summaryrefslogtreecommitdiff
path: root/maximus/maximus-app.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2017-12-08 02:18:10 +0100
committerPablo Barciela <[email protected]>2017-12-08 02:18:10 +0100
commitdaa3c9801ea73e63031c3a34c3674aea92d858c6 (patch)
treed85cf17d707a2a0c0d39484e9b3084fdfa5e5d60 /maximus/maximus-app.c
parentb1f7d011419a9d621ccd8d3c28f4ed2837876279 (diff)
downloadmate-netbook-daa3c9801ea73e63031c3a34c3674aea92d858c6.tar.bz2
mate-netbook-daa3c9801ea73e63031c3a34c3674aea92d858c6.tar.xz
WidthOfScreen and HeightOfScreen implementation
Avoid the deprecated functions: gdk_screen_get_width gdk_screen_get_height
Diffstat (limited to 'maximus/maximus-app.c')
-rw-r--r--maximus/maximus-app.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/maximus/maximus-app.c b/maximus/maximus-app.c
index 9b1120f..672393c 100644
--- a/maximus/maximus-app.c
+++ b/maximus/maximus-app.c
@@ -223,8 +223,8 @@ window_is_too_large_for_screen (WnckWindow *window)
/* some wiggle room */
return (screen &&
- (w > (gdk_screen_get_width (screen) + 20) ||
- h > (gdk_screen_get_height (screen)+20)));
+ (w > (WidthOfScreen (gdk_x11_screen_get_xscreen (screen)) + 20) ||
+ h > (HeightOfScreen (gdk_x11_screen_get_xscreen (screen)) + 20)));
}
static gboolean