Bug 499997

Summary: Virtual desktops no longer reset to Desktop 1 at login, even when using "Start with an empty session" setting
Product: [Plasma] kwin Reporter: Luke Horwell <code>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: hein, nate, xaver.hugl
Priority: NOR Keywords: regression
Version First Reported In: 6.3.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Luke Horwell 2025-02-13 15:45:28 UTC
SUMMARY

Since upgrading to Plasma 6.3, the last virtual desktop position is restored, which is undesired, especially as the desktop session settings are set to "Start with an empty session" (System Settings → Desktop Session).

STEPS TO REPRODUCE
1. Add a few virtual desktops.
2. Use the pager to switch to desktop 3.
3. Log out.
4. Log back in.
5. Observe the current virtual desktop position.

OBSERVED RESULT
If you log out on desktop 3, you return to desktop 3.

EXPECTED RESULT
If you log out on desktop 3, you return to desktop 1.


SOFTWARE/OS VERSIONS
Arch Linux
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Both X11 and Wayland affected.

ADDITIONAL INFORMATION

This behaviour is inconsistent with other panel environments like MATE, which by default, start from 1.

Unsurprisingly, this is because an old bug was fixed (BUG 390295):
https://invent.kde.org/plasma/kwin/-/commit/4599483dba615546dd7e6c4cc73f3275ad9c3979

Suggestions:
(a) When an empty session is set, don't restore the virtual desktop last position.
(b) Add an option "Remember virtual desktop position between sessions".