diff options
author | lukefromdc <[email protected]> | 2023-06-29 08:05:44 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2023-10-12 12:21:13 +0200 |
commit | aa80005f4f2f0fe3cfbc2517213167397c1a1ce0 (patch) | |
tree | 08efaeced16cf0f2391e1f7dc1a4ddbfd923613b /src | |
parent | e98fd06346d621d84ea1df97b018f204a9a7e641 (diff) | |
download | caja-aa80005f4f2f0fe3cfbc2517213167397c1a1ce0.tar.bz2 caja-aa80005f4f2f0fe3cfbc2517213167397c1a1ce0.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-desktop-window.c | 5 |
1 files changed, 3 insertions, 2 deletions
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, |