Bug 310920 - Activities not remembered on kwin restart
Summary: Activities not remembered on kwin restart
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: activities (other bugs)
Version First Reported In: 4.9.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 335088 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-30 12:21 UTC by Michael Reiher
Modified: 2021-12-06 04:38 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
activities management script (3.28 KB, application/octet-stream)
2012-11-30 15:11 UTC, Thomas Lübking
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Reiher 2012-11-30 12:21:44 UTC
When restarting kwin (no X restart, the rest of the desktop keeps running), e.g. via kwin --replace or after it crashed, the information on which activity a window is placed gets lost. All windows are set to be on all activities. And then sorting out all windows and set the correct activities again is a tedious job.

I know this is nothing that should ever happen, but in reality it does. And handling this more gracefully would make even Kwin bugs more pleasant ;)

Reproducible: Always

Steps to Reproduce:
1. Have windows on different activities, but not set to "All Activities"
2. kwin --replace
3.
Actual Results:  
All windows are set to be on "All Activities".

Expected Results:  
Windows should stay on the respective activities where were before the restart.
Comment 1 Michael Reiher 2012-11-30 12:53:29 UTC
other related observations when restarting kwin:
- often windows get shifted down a bit and partly disappear behind panel/screen edge (the amount could the hight of the decoration)
- maximized state is lost (geometry is kept, just the information that it's maximized gets lost)
Comment 2 Thomas Lübking 2012-11-30 15:11:58 UTC
Created attachment 75548 [details]
activities management script

can you provide the output of
xprop | grep _KDE_NET_WM_ACTIVITIES
of such window and
activities l (using the attached script)
Comment 3 Michael Reiher 2012-11-30 17:24:39 UTC
$ bash ~/Download/activities.sh l
32304875-8d67-46b1-a503-37609df4c02c ("Internet") : 2

-------------------------------------------
a922244c-31a8-4c68-bf65-e13972a21086 ("Development") : 2

-------------------------------------------
b05ea9cc-3ec6-4068-8a07-8e1540f6498a ("Allgemein") : 2

-------------------------------------------

Assigned the Kontact window to activity "Internet":
$ xprop | grep _KDE_NET_WM_ACTIVITIES
_KDE_NET_WM_ACTIVITIES(STRING) = "32304875-8d67-46b1-a503-37609df4c02c"

Restarted kwin: 
$ kwin --replace

Kontact window assigned to all activities:
$ xprop | grep _KDE_NET_WM_ACTIVITIES
_KDE_NET_WM_ACTIVITIES(STRING) = "ALL"
Comment 4 Stefanos Harhalakis 2013-06-04 13:04:15 UTC
Still present in KDE 4.10.2
Comment 5 Michael Reiher 2014-05-06 12:28:45 UTC
Any news on this one? A few days ago kwin crash twice for me and I had to sort out like 70+ windows to their respective activities using this cumbersome context menu... no fun :)
Comment 6 Alexander Mentyu 2018-04-04 15:50:05 UTC
*** Bug 335088 has been marked as a duplicate of this bug. ***
Comment 7 kde.org 2021-11-06 20:31:21 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
Comment 8 Bug Janitor Service 2021-11-21 04:38:35 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2021-12-06 04:38:00 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!