Bug 425105 - restarting kwin makes that all windows for all activities appear on default one
Summary: restarting kwin makes that all windows for all activities appear on default one
Status: RESOLVED DUPLICATE of bug 438312
Alias: None
Product: kwin
Classification: Plasma
Component: activities (show other bugs)
Version: 5.18.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-07 11:58 UTC by Piotr Mierzwinski
Modified: 2022-07-27 15:21 UTC (History)
4 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 Piotr Mierzwinski 2020-08-07 11:58:34 UTC
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
Comment 1 Oded Arbel 2021-02-28 09:47:01 UTC
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`
Comment 2 David Edmundson 2022-07-27 15:21:29 UTC

*** This bug has been marked as a duplicate of bug 438312 ***