Skip to content

Fix "Toggle raise and lower" functionality

Vlad Zahorodnii requested to merge work/zzag/cherry-pick-raise-or-lower into Plasma/6.2

Fix "Toggle raise and lower" functionality for a case when there are windows in higher layers present on the same desktop; a window that is being acted upon could never be top-most in such a case, which prevented it from being lowered by "Toggle raise and lower" action.

Checking if a window is top-most now uses unconstrained_stacking_order list, which reflects user-requested stacking window order, but doesn't know anything about layers, and that in turn allows any window that user has raised most recently to be lowered by "Toggle raise and lower" (even if this window is not actually top-most, because of windows in higher layers).

BUG: 440540 (cherry picked from commit dad57ad0)

Merge request reports