summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-06-29 08:05:44 -0400
committerLuke from DC <[email protected]>2023-06-29 13:51:55 +0000
commit126a4a2a3ad3d93088644406936a2499f7be18be (patch)
tree5e31c23315417553efa315e6bd70d20131510ebf /src
parente0901e736a7a7d461dd1b291e591fb729de738b8 (diff)
downloadcaja-126a4a2a3ad3d93088644406936a2499f7be18be.tar.bz2
caja-126a4a2a3ad3d93088644406936a2499f7be18be.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.c5
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,