Merge pull request #1239 from dcz-purism/layer_order_master

rootston: Keep older anchored layers near anchor points
This commit is contained in:
Drew DeVault 2018-09-11 08:11:11 -04:00 committed by GitHub
commit b2112686df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ static void arrange_layer(struct wlr_output *output,
struct wlr_box full_area = { 0 }; struct wlr_box full_area = { 0 };
wlr_output_effective_resolution(output, wlr_output_effective_resolution(output,
&full_area.width, &full_area.height); &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 *layer = roots_surface->layer_surface;
struct wlr_layer_surface_state *state = &layer->current; struct wlr_layer_surface_state *state = &layer->current;
if (exclusive != (state->exclusive_zone > 0)) { if (exclusive != (state->exclusive_zone > 0)) {