Bug 513960

Summary: "Keep window below others" does not re-order window when turned off
Product: [Plasma] kwin Reporter: Paul Pfann <ppfann>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.5.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Paul Pfann 2025-12-29 17:57:28 UTC
SUMMARY
When "Keep window below others" is turned off for an active window, the window stays below other inactive windows. It does not return to the top of the stack until clicked.

STEPS TO REPRODUCE
1. Bind "Keep window below others" to a hotkey
2. Toggle it on & off

OBSERVED RESULT
Active window remains below other windows. Only a mouse click will reset it. Keyboard input goes to the window but does not raise it.

EXPECTED RESULT
When toggled off, an active window should return to the top of the stack.

EXTRA NOTES
The same behavior happens with right click titlebar -> more actions -> check keep below others.

But when using icons-only task manager right-click menu to turn it off, the correct behavior happens: the window immediately pops to top of stack. This even extends to **inactive** windows: if a window is set to keep below then focus is switched to another program, turning off keep below with the task manager returns it to above the other inactive windows, but below the new active one. So toggling with the task manager produces what I would call the correct behavior in all cases I can think of.



SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Opensuse Tumbleweed
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Kernel version: 6.18.2-1-default (64-bit)
Graphics platform: Wayland