SUMMARY If you have one window per screen (at least two screens) and you close one of them then the other window should be automatically focused (at least this is how it works for a single screen). STEPS TO REPRODUCE 1. Have one window on one screen and another window on another screen. 2. Close one window. OBSERVED RESULT Nothing gets focused. If I start writing something then krunner shows ("Activate when pressing any key on the desktop" setting), but it shows on another screen (not the one where window was closed) which seems like a weird choice. EXPECTED RESULT Either another available window should get focused (in this situation the one on another screen) or krunner should be displayed on a screen which was focused most recently. SOFTWARE/OS VERSIONS Operating System: Fedora Linux 41 KDE Plasma Version: 6.1.90 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 Kernel Version: 6.11.0-63.fc41.x86_64 (64-bit) Graphics Platform: Wayland
Was this part intentional, Xaver? Or an unintentional quirk of the intentional changes?
(In reply to Tomasz Hołubowicz from comment #0) > If you have one window per screen (at least two screens) and you close one > of them then the other window should be automatically focused (at least this > is how it works for a single screen). Not anymore, focus was intentionally changed to be per screen. You can switch it back in the window behavior -> focus settings > Nothing gets focused. If I start writing something then krunner shows ("Activate when pressing any key on the desktop" setting), but it shows on another screen (not the one where window was closed) which seems like a weird choice. Yeah, that's not supposed to happen.
Git commit 47a2a2e12a52d1c28ba1043071190c9707640bee by Vlad Zahorodnii. Committed on 09/10/2024 at 21:18. Pushed by vladz into branch 'master'. Prefer activating desktop window on active output Workspace::findDesktop() doesn't take into account the current active output, and instead returns the first top desktop window found in the stack. This means that the active output may drift and the focus chain logic can break. Related: bug 494332 M +5 -4 src/activation.cpp M +3 -3 src/layers.cpp M +5 -5 src/workspace.cpp M +1 -1 src/workspace.h https://invent.kde.org/plasma/kwin/-/commit/47a2a2e12a52d1c28ba1043071190c9707640bee
Git commit 72d64a3b96f1fb7111852f876de2bb68aa7645f5 by Vlad Zahorodnii. Committed on 10/10/2024 at 13:45. Pushed by vladz into branch 'Plasma/6.2'. Prefer activating desktop window on active output Workspace::findDesktop() doesn't take into account the current active output, and instead returns the first top desktop window found in the stack. This means that the active output may drift and the focus chain logic can break. Related: bug 494332 (cherry picked from commit 47a2a2e12a52d1c28ba1043071190c9707640bee) M +5 -4 src/activation.cpp M +3 -3 src/layers.cpp M +5 -5 src/workspace.cpp M +1 -1 src/workspace.h https://invent.kde.org/plasma/kwin/-/commit/72d64a3b96f1fb7111852f876de2bb68aa7645f5