From e3f828dd625dbf00e6fb23e4f9de4de2c088771a Mon Sep 17 00:00:00 2001 From: 4aMgLn4 Date: Fri, 31 Jul 2026 15:27:25 +0900 Subject: [PATCH] fix: don't tile/move the desktop-icons window on Super+Arrow When no application window is focused (e.g. after clicking empty desktop space), display.get_focus_window() can return the desktop-icons window (Nautilus desktop / Desktop Icons NG), which is a Meta.Window of type DESKTOP rather than NORMAL. _onKeyboardMoveWin lacked the windowType guard that _onKeyboardUntileWindow already had, so pressing Super+Arrow would tile/resize the desktop window itself, making desktop icons appear to shift or float. Fixes #183 --- src/extension.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extension.ts b/src/extension.ts index eee13a9..04d63eb 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -508,6 +508,7 @@ export default class TilingShellExtension extends Extension { if ( !focus_window || !focus_window.has_focus() || + focus_window.windowType !== Meta.WindowType.NORMAL || (focus_window.get_wm_class() && focus_window.get_wm_class() === 'gjs') || focus_window.is_fullscreen()