diff options
author | Pablo Barciela <[email protected]> | 2017-12-08 02:18:10 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2017-12-08 02:18:10 +0100 |
commit | daa3c9801ea73e63031c3a34c3674aea92d858c6 (patch) | |
tree | d85cf17d707a2a0c0d39484e9b3084fdfa5e5d60 /maximus/maximus-app.c | |
parent | b1f7d011419a9d621ccd8d3c28f4ed2837876279 (diff) | |
download | mate-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.c | 4 |
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 |