diff options
-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, |