From aa80005f4f2f0fe3cfbc2517213167397c1a1ce0 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Thu, 29 Jun 2023 08:05:44 -0400 Subject: Replace deprecated code from xrandr fix *In x11 we can anchor the desktop size to the root window instead of the screen or (possibly multiple)monitors --- src/caja-desktop-window.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index bb31b2c6..b5f7e9a5 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -156,8 +156,9 @@ caja_desktop_window_screen_size_changed (GdkScreen *screen, { int width_request, height_request; - width_request = gdk_screen_get_width(screen); - height_request = gdk_screen_get_height(screen); + GdkWindow *root_window; + root_window = gdk_screen_get_root_window (screen); + gdk_window_get_geometry (root_window, NULL, NULL, &width_request, &height_request); g_object_set (window, "width_request", width_request, -- cgit v1.2.1