SUMMARY *** With 'Session Restore' option enabled, on the next login the all applications are restored in Virtual Desktop 1 even though they were in different virtual desktops while logging out (specific to Wayland, works fine in X11) *** STEPS TO REPRODUCE 1. Open Plasma Settings and go to Session->Desktop Session->Session Restore option 2. Check 'On Last Logout' (or 'When session was manually saved') option 3. Open an application (e.g. Firefox) in virtual desktop 2 4. Restart the machine OBSERVED RESULT On restart, Firefox appears on the default desktop (desktop 1) EXPECTED RESULT On restart, Firefox should appears on the desktop 2 SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 6.7.8-arch1-1 (available in About System) KDE Plasma Version: 6.0.1 KDE Frameworks Version: Qt Version: QT 6 ADDITIONAL INFORMATION This works fine with X11 i.e. the applications are restored in correct desktops
I remember seeing a duplicate of this, but I can't find it now...
There's Bug 336990, but it looks like there may be a bunch of different issues that need to be tracked separately.
I can confirm that I'm seeing the exact same behaviour. Windows are restored on the virtual desktops where they were before when using X11, but it's broken on Wayland. I tested this by logging out, switching from Wayland to X11 (in the bottom left corner of the login screen), and logging back in again. Notably, this has nothing to do with restoring the Plasma user session. Windows should restore correctly even when simply restarting (or closing/reopening) Firefox. Meanwhile, Chromium windows restore just fine on the correct virtual desktops in Wayland. So it's a Firefox-specific issue. Operating System: KDE neon 6.0 KDE Plasma Version: 6.0.2 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.5.0-26-generic (64-bit)
After some further testing, I can confirm that in Wayland the size of Firefox windows is restored correctly, but neither their position nor the specific screen (in a multi-screen system) nor the virtual desktop is restored. All windows just pop up in the centre of the primary screen on the current virtual desktop.
*** Bug 484318 has been marked as a duplicate of this bug. ***