Bug 451887

Summary: Deleting workspaces in the Overview effect messes with the belonging of other windows.
Product: [Plasma] kwin Reporter: Nicolai Weitkemper <kde-bugs>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde-bugs
Priority: NOR    
Version First Reported In: 5.24.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: short demonstration video for variant 1
short demonstration video for variant 2

Description Nicolai Weitkemper 2022-03-25 12:24:16 UTC
Created attachment 147724 [details]
short demonstration video for variant 1

SUMMARY
Deleting workspaces in the Overview effect diverges an unrelated window's belonging from the panel.

STEPS TO REPRODUCE
## Variant 1
1. Have three (for my demonstration video, otherwise two should suffice) workspaces, where the second doesn't hold any windows.
2. Switch to the third workspace, which should hold (at least) one window.
2. Delete the second workspace using the Overview effect.
3. Close the effect.

## Variant 2
1. Have three workspaces, where the second doesn't hold any windows.
2. Delete the second workspace using the Overview effect.
3. Create a new workspace (now the third) and switch to it
4. Both Overview and the panel suggest that the newly created workspace contains the windows that actually reside in the second (previously the third) workspace.

OBSERVED RESULT
## Variant 1
- The window remains visible and usable on the correct workspace
- Overview shows the window on the correct workspace
- The panel “forgets about” the windows

## Variant 2
See attached video.

EXPECTED RESULT
Should be self-explanatory.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
N/A
Comment 1 Nicolai Weitkemper 2022-03-25 12:24:55 UTC
Created attachment 147725 [details]
short demonstration video for variant 2
Comment 2 Nicolai Weitkemper 2022-03-25 18:55:23 UTC
Also note that I had to click the "+" button twice in "variant 2".
Comment 3 Nicolai Weitkemper 2023-11-29 17:01:09 UTC
I can't reproduce this anymore (Plasma 5.27.9), so closing as fixed.