Bug 436093

Summary: Task switcher order changes when a notification appears from an app in a different virtual desktop
Product: [Plasma] kwin Reporter: Radics Baltazár <baltazar.radics>
Component: tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde, nate, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.21.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of System Settings > Window Management > Task Switcher

Description Radics Baltazár 2021-04-23 12:34:52 UTC
I'm having an issue where the task switcher somehow changes the order of windows when a notification appears.

For example, if I have 3 windows open, I'm focused on window A, and my most recently used one is window B. Normally, pressing alt+tab takes me to window B, and pressing it again (after releasing alt) takes me back to A.  However, if B displays a notification, pressing alt+tab will instead take me to window C, and if I press alt+tab there (after releasing alt), it takes me to window B.

STEPS TO REPRODUCE
1. Have at least 3 windows open.
2. Make one of them show a notification while it's not focused (e.g. `sleep 2; notify-send test-notif` in konsole, then switch away from it)
3. Alt+tab doesn't switch back to the most recently used window.

A screen recording of me reproducing the issue is available here: https://balti.desnull.hu/plasma-task-switcher-notifs.mp4

SOFTWARE/OS VERSIONS
Linux: 5.10.30-1-lts
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Comment 1 Nate Graham 2021-04-27 17:18:42 UTC
Can you also attach a screenshot of what System Settings > Window Management > Task Switcher looks like for you?
Comment 2 Radics Baltazár 2021-04-27 17:22:30 UTC
Created attachment 137959 [details]
Screenshot of System Settings > Window Management > Task Switcher

Here's the screenshot. In 'Alternative', I have no shortcuts configured.
Comment 3 Nate Graham 2021-04-27 17:27:14 UTC
Thanks.
Comment 4 Radics Baltazár 2021-05-04 11:53:56 UTC
Hmm, the issue seems to be fixed for me.