summaryrefslogtreecommitdiff
path: root/maximus
diff options
context:
space:
mode:
Diffstat (limited to 'maximus')
-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