Bug 499997 - Virtual desktops no longer reset to Desktop 1 at login, even when using "Start with an empty session" setting
Summary: Virtual desktops no longer reset to Desktop 1 at login, even when using "Star...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.3.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2025-02-13 15:45 UTC by Luke Horwell
Modified: 2025-02-18 16:56 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".