diff options
-rw-r--r-- | src/caja-desktop-window.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index 061b11b7..bb31b2c6 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -155,12 +155,9 @@ caja_desktop_window_screen_size_changed (GdkScreen *screen, CajaDesktopWindow *window) { int width_request, height_request; - int scale; - - scale = gdk_window_get_scale_factor (gdk_screen_get_root_window (screen)); - width_request = WidthOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale; - height_request = HeightOfScreen (gdk_x11_screen_get_xscreen (screen)) / scale; + width_request = gdk_screen_get_width(screen); + height_request = gdk_screen_get_height(screen); g_object_set (window, "width_request", width_request, |