diff options
Diffstat (limited to 'src/caja-window.c')
-rw-r--r-- | src/caja-window.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/caja-window.c b/src/caja-window.c index f820a20b..10e71b35 100644 --- a/src/caja-window.c +++ b/src/caja-window.c @@ -516,12 +516,7 @@ caja_window_zoom_to_default (CajaWindow *window) static guint get_max_forced_height (GdkScreen *screen) { - gint height; - - gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, - NULL, &height); - - return (height * 90) / 100; + return (HeightOfScreen (gdk_x11_screen_get_xscreen (screen)) * 90) / 100; } /* Code should never force the window wider than this size. @@ -530,12 +525,7 @@ get_max_forced_height (GdkScreen *screen) static guint get_max_forced_width (GdkScreen *screen) { - gint width; - - gdk_window_get_geometry (gdk_screen_get_root_window (screen), NULL, NULL, - &width, NULL); - - return (width * 90) / 100; + return (WidthOfScreen (gdk_x11_screen_get_xscreen (screen)) * 90) / 100; } /* This must be called when construction of CajaWindow is finished, |