SUMMARY I have set up 3 activities, so couple windows are placed on desktop related with these activities. I have set restore Plasma session every login. When I restart manually kwin (kwin_x11 --replace) or it restarts itself from some reason, for example because crashed. Windows coming from all activities appear on my default activity. STEPS TO REPRODUCE 1. Set restore Plasma session as on 2. Set up couple activities 3. Start on each of them at least one application 4. Switch to default activity 5. Restart kwin manually (kwin_x11 --replace) OBSERVED RESULT Windows/Applications from all activities appear on default activity. EXPECTED RESULT Window/Application started on given activity should be placed (restored after kwin restart) on this activity, not moved into default. SOFTWARE/OS VERSIONS Linux/KDE Plasma: YES (available in About System) KDE Plasma Version: 5.19.4 KDE Frameworks Version: 5.72 Qt Version: 5.15.0 ADDITIONAL INFORMATION
I have the same issue - sometimes I encounter kwin instability and have to restart it (its actually quite common for me, so much that I have a menu shortcut for this). When kwin restarts, all windows have "show in activities: all activities" and I have to go over each and reset the activity. IIRC plasma "stores the session" only on exit, but this behavior is reproducible also when doing: 1. setup windows and activities 2. logout and log back in 3. restart kwin. I'm using the SystemD integration and this behavior is also reproducible by running `systemctl restart --user plasma-kwin_x11.service`
*** This bug has been marked as a duplicate of bug 438312 ***