diff options
author | lukefromdc <[email protected]> | 2023-05-17 23:00:54 -0400 |
---|---|---|
committer | Luke from DC <[email protected]> | 2023-05-25 18:56:56 +0000 |
commit | 5688856331109e77d7362f5665fb178d1c269a39 (patch) | |
tree | 0f5b0b001fe68c5a5d5eab57e5c38cb3fa540546 /src/caja-window.c | |
parent | 99a1e2a20567cbe988006d0fdfef6abab6324dc2 (diff) | |
download | caja-5688856331109e77d7362f5665fb178d1c269a39.tar.bz2 caja-5688856331109e77d7362f5665fb178d1c269a39.tar.xz |
Initial wayland support
Diffstat (limited to 'src/caja-window.c')
-rw-r--r-- | src/caja-window.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/caja-window.c b/src/caja-window.c index 2417e07c..a67a5ee4 100644 --- a/src/caja-window.c +++ b/src/caja-window.c @@ -591,8 +591,7 @@ caja_window_zoom_to_default (CajaWindow *window) static guint get_max_forced_height (GdkScreen *screen) { - gint scale = gdk_window_get_scale_factor (gdk_screen_get_root_window (screen)); - return (HeightOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale * 90) / 100; + return (gdk_screen_get_height (screen) * 90) / 100; } /* Code should never force the window wider than this size. @@ -601,8 +600,7 @@ get_max_forced_height (GdkScreen *screen) static guint get_max_forced_width (GdkScreen *screen) { - gint scale = gdk_window_get_scale_factor (gdk_screen_get_root_window (screen)); - return (WidthOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale * 90) / 100; + return (gdk_screen_get_width (screen) * 90) / 100; } /* This must be called when construction of CajaWindow is finished, |