Bug 454565

Summary: Windows linger when the user chooses to hide them from the current activity
Product: [Plasma] kwin Reporter: Kishore Gopalakrishnan <kishore96>
Component: activitiesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.24.90   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2022-05-29 12:08:53 UTC
SUMMARY
When the user uses the window control menu (Alt+F3) to hide a window from the current activity, the window lingers in the current activity until the user switches to another virtual desktop and back. This bug does not occur with kwin 5.24.5.

STEPS TO REPRODUCE
1. Open multiple activities
2. In a window in one activity, press Alt+F3 and choose to show it in another activity
3. Press Alt+F3 again and choose to hide it from the current activity

OBSERVED RESULTS
The window is still shown in the current activity, but you can't interact with it. This 'ghost' disappears when the user switches to another virtual desktop and back

EXPECTED RESULTS
Window should be immediately hidden from the current activity if the user has chosen not to show it.

SOFTWARE VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.15.43-1-lts (64-bit)
Graphics Platform: X11
Processors: 4 × AMD EPYC-Rome Processor
Memory: 1.4 GiB of RAM
Graphics Processor: virgl
Manufacturer: QEMU
Product Name: Standard PC (Q35 + ICH9, 2009)
System Version: pc-q35-5.1

ADDITIONAL INFORMATION
Downgrading kwin to 5.24.5 fixes the issue.
Comment 1 Kishore Gopalakrishnan 2022-08-07 04:04:13 UTC
No longer reproducible with

Operating System: Arch Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.16-arch1-1 (64-bit)
Graphics Platform: X11