Bug 467636

Summary: Clicking area where windows overlap changes the window stacking order
Product: [Plasma] kwin Reporter: tguen <tguenther.dev>
Component: effects-desktop-gridAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: nate, sergei, tguenther.dev
Priority: NOR    
Version First Reported In: 5.27.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description tguen 2023-03-21 04:37:01 UTC
SUMMARY
When desktop grid is configured not to spread out the windows on each desktop, clicking any area with overlapping windows changes the window stacking order.

STEPS TO REPRODUCE
1. In System Settings, go to Workspace Behavior -> Desktop Effects
2. Click the settings icon next to Desktop Grid
3. Set 'Windows layout' to 'none'
4. Open any two windows and position them so they overlap
5. Repeatedly open the desktop grid and click the space where the windows overlap

OBSERVED RESULT
The window stacking order is changed

EXPECTED RESULT
The window that was on top of the stack in the desktop grid should remain on top

SOFTWARE/OS VERSIONS
Arch
Plasma 5.27.3
Frameworks 5.104.0
Qt 5.15.8
Comment 1 Sergey Stolyarov 2023-05-10 06:58:57 UTC
Can confirm it's reproduced on debian with 5.27.2.
Comment 2 Nate Graham 2024-03-25 22:00:11 UTC
The relevant setting that triggers this has been removed in Plasma 6, so it can't happen anymore.