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
Can confirm it's reproduced on debian with 5.27.2.
The relevant setting that triggers this has been removed in Plasma 6, so it can't happen anymore.