From daa3c9801ea73e63031c3a34c3674aea92d858c6 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Fri, 8 Dec 2017 02:18:10 +0100 Subject: WidthOfScreen and HeightOfScreen implementation Avoid the deprecated functions: gdk_screen_get_width gdk_screen_get_height --- maximus/maximus-app.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'maximus') 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 -- cgit v1.2.1