Commit e7e36d1c authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz
Browse files

rootston: Keep older anchored layers near anchor points

Layer surfaces are attached to edges of the screen starting with the youngest, causing new ones to always displace existing ones. This changes the order to oldest first, keeping the positions more often.

Copy of upstream's https://github.com/swaywm/wlroots/pull/1239
parent f37f381c
Pipeline #935 passed with stage
in 3 minutes and 5 seconds
......@@ -110,7 +110,7 @@ static void arrange_layer(struct wlr_output *output,
struct wlr_box full_area = { 0 };
wlr_output_effective_resolution(output,
&full_area.width, &full_area.height);
wl_list_for_each(roots_surface, list, link) {
wl_list_for_each_reverse(roots_surface, list, link) {
struct wlr_layer_surface *layer = roots_surface->layer_surface;
struct wlr_layer_surface_state *state = &layer->current;
if (exclusive != (state->exclusive_zone > 0)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment