diff options
Diffstat (limited to 'src/caja-desktop-window.c')
-rw-r--r-- | src/caja-desktop-window.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c index 4ef0b976..7e83a4b6 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -135,7 +135,12 @@ caja_desktop_window_new (CajaApplication *application, "height_request", height_request, "screen", screen, NULL)); - + /* Stop wrong desktop window size in GTK 3.20*/ + /* We don't want to set a default size, which the parent does, since this */ + /* will cause the desktop window to open at the wrong size in gtk 3.20 */ +#if GTK_CHECK_VERSION (3, 19, 0) + gtk_window_set_default_size (GTK_WINDOW (window), -1, -1); +#endif /* Special sawmill setting*/ gtk_window_set_wmclass (GTK_WINDOW (window), "desktop_window", "Caja"); @@ -280,4 +285,3 @@ caja_desktop_window_loaded (CajaDesktopWindow *window) { return window->details->loaded; } - |