From e98fd06346d621d84ea1df97b018f204a9a7e641 Mon Sep 17 00:00:00 2001 From: yangxiaojuan Date: Tue, 27 Jun 2023 15:56:18 +0800 Subject: caja-desktop-window: Fix the xrandr error fix https://github.com/mate-desktop/caja/issues/1069 --- src/caja-desktop-window.c | 7 ++----- 1 file 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, -- cgit v1.2.1