https://bugs.kde.org/show_bug.cgi?id=483936
Bug ID: 483936 Summary: Program stuck in preview mode and displayed over others after closing different program through Task Switcher Classification: Plasma Product: kwin Version: 6.0.2 Platform: Arch Linux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: tabbox Assignee: kwin-bugs-n...@kde.org Reporter: fi...@tutanota.com Target Milestone: --- Created attachment 167427 --> https://bugs.kde.org/attachment.cgi?id=167427&action=edit Program is drawn over everything SUMMARY Closing a program from Task Switcher shown with Alt+Tab will display a program behind the switcher which does not have focus but is drawn in front of everything else regardless. A different program will be highlighted on the Task Switcher itself and that program will actually have focus (i.e. it receives mouse clicks even if it's not visible). The program displayed over others is "stuck" like this until you switch to the program displayed on screen with Task Switcher, or interact with the titlebar when there is only empty desktop behind the titlebar. STEPS TO REPRODUCE 1. Open a few programs. 2. Alt+Tab to open Task Switcher 3. Close a program by clicking its (X) in Task Switcher OBSERVED RESULT Behind the Task Switcher, the program shown ("program 4" in video) will be different to the one highlighted in Task Switcher itself ("program 2"). I'm not certain what logic is choosing the program to display on screen, but I think it's always the wrong one compared to what Task Switcher shows. Exiting Task Switcher (releasing Alt+Tab) will show program 4 without focus but drawn in front of other programs, and program 2 will have focus. If the programs aren't maximised, you CAN move the program drawn at the front by clicking on the titlebar PROVIDED there is no window below the program drawn at the front, i.e. if there's desktop background behind the titlebar then it receives the mouse clicks. Otherwise, when program 4 is over other programs, using the mouse over program 4 goes through it and to the programs behind it (focused or not). Task Switcher can switch between programs fine, but program 1 stays in front even if a different program is focused by Task Switcher. When you switch to program 4, it regains focus and behaves like normal. After this, switching to a different program works as expected and program 4 no longer stays in front of other programs. ADDITIONAL INFORMATION I think the issue occurs when the last focused window is the one you're closing. With focus on program 3, Alt+Tab for Task Switcher previews program 4 but doesn't commit to focusing i until Alt+Tab is released (I think). So in our case, program 3 is not focused any more, program 4 is preview focused; then program 3 is closed through the Task Switcher (X) and perhaps program 4 just gets stuck in the preview focus view? SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.0.2 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.8.1-arch1-1 (64-bit) Graphics Platform: Wayland -- You are receiving this mail because: You are watching all bug changes.