Skip to content

stack: Clean up window layer calculation

This was originally part of a fix for #587 (closed), but then it turned out that a simpler patch fixed more than the narrow case of popup menus.

Still, the cleanup here looks like a good idea regardless. From the main commit:

While most of the code to compute a window's layer isn't explicitly
windowing backend specific, it is in practice: On wayland there are
no DESKTOP windows, docks or groups.

Reflect that by introducing a calculate_layer() vfunc that computes
(and sets) a window's layer.

Merge request reports

Loading