diff options
| author | Balló György <[email protected]> | 2026-10-14 00:25:25 +0200 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-10-19 12:43:41 -0400 |
| commit | f9d032e7da27c9f23ae57e626ed9cb2a9965146f (patch) | |
| tree | c9381930d672008619e42a5396504a12880463d2 | |
| parent | a57395da45a23faffdb27c123ddbb89638f188e4 (diff) | |
| download | caja-f9d032e7da27c9f23ae57e626ed9cb2a9965146f.tar.bz2 caja-f9d032e7da27c9f23ae57e626ed9cb2a9965146f.tar.xz | |
desktop: Fix desktop window position with client-side decorations
Move the desktop window after setting its decorated property to
FALSE, so GTK can correctly account for client-side decorations
when positioning the window.
This fixes the desktop window being positioned at negative
coordinates on X11 when GTK_CSD=1 is used.
| -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 8193c650..7bf18961 100644 --- a/src/caja-desktop-window.c +++ b/src/caja-desktop-window.c @@ -103,8 +103,6 @@ caja_desktop_window_init (CajaDesktopWindow *window) context = gtk_widget_get_style_context (GTK_WIDGET (window)); gtk_style_context_add_class (context, "caja-desktop-window"); - gtk_window_move (GTK_WINDOW (window), 0, 0); - /* shouldn't really be needed given our semantic type * of _NET_WM_TYPE_DESKTOP, but why not */ @@ -221,6 +219,9 @@ caja_desktop_window_new (CajaApplication *application, "screen", screen, "decorated", FALSE, NULL)); + + gtk_window_move (GTK_WINDOW (window), 0, 0); + /* 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 */ |
