Bug 496063

Summary: When restoring session with multiple virtual desktops applications that are being restored keep switching virtual desktops
Product: [Plasma] kwin Reporter: zzrakic
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kde, nate, pm
Priority: NOR    
Version: 6.2.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description zzrakic 2024-11-10 18:42:26 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

SUMMARY
When restoring (desktop) session (after reboot or shutdown) with multiple virtual desktops applications that were opened on different virtual desktops keep switching virtual desktops as they are launching. To be clear, applications are opening on proper virtual desktops on which they were initially opened but current active virtual desktop keeps switching as apps are starting.

STEPS TO REPRODUCE
1. Enable "Session Restore" in "Desktop Session" settings (I use manually saved but same happens with "On last logout"
2. Open different apps on different virtual desktops (terminal on 1., 2. browser, 3. messaging app, 4. note taking app, etc.)
3. Reboot/Shutdown

OBSERVED RESULT
After logging in active virtual desktop keeps switching and you land on the one where the last app opened.

EXPECTED RESULT
After logging in, session starts on virtual desktop 1 (or ideally on one that user can pick), all the apps are opened on proper virtual desktops in background without changing the active virtual desktop.

Another option would be that they start during the "Splash Screen" and then sessions starts with virtual desktop 1.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.6-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Tried changing "Virtual Desktop behavior: When activating a window on a different Virtual Desktop:" from "Switch to that Virtual Desktop" to "Do nothing" but that didn't help with this issue. Also I would like to keep this option to "Switch to that Virtual Desktop" since it's useful when opening links.
Comment 1 Petr 2024-12-13 10:22:51 UTC
maybe related to bug 484209