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
Depends on:
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:


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

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.

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)

Windows/Applications from all activities appear on default activity.

Window/Application started on given activity should be placed (restored after kwin restart) on this activity, not moved into default.

Linux/KDE Plasma: YES
(available in About System)
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.72
Qt Version: 5.15.0

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 ***