Bug 482816 - On Wayland, real-fake-session-restored application not restored onto their virtual desktops
Summary: On Wayland, real-fake-session-restored application not restored onto their vi...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 6.0.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 484318 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-08 04:45 UTC by loma
Modified: 2024-11-12 21:00 UTC (History)
10 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 loma 2024-03-08 04:45:11 UTC
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
Comment 1 fanzhuyifan 2024-03-08 20:33:42 UTC
I remember seeing a duplicate of this, but I can't find it now...
Comment 2 Nate Graham 2024-03-10 20:40:56 UTC
There's Bug 336990, but it looks like there may be a bunch of different issues that need to be tracked separately.
Comment 3 Philipp Verpoort 2024-03-23 22:18:55 UTC
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)
Comment 4 Philipp Verpoort 2024-03-24 14:02:54 UTC
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.
Comment 5 Nate Graham 2024-04-12 01:53:50 UTC
*** Bug 484318 has been marked as a duplicate of this bug. ***