Merge pull request #150 from Sevz17/wlroots-next

client_pending has been renamed as pending in wlr_layer_surface_v1
This commit is contained in:
Devin J. Pohly 2021-09-24 23:24:41 -05:00 committed by GitHub
commit d3efb0b29b
Failed to generate hash of commit

6
dwl.c
View file

@ -930,13 +930,13 @@ createlayersurface(struct wl_listener *listener, void *data)
wlr_layer_surface->data = layersurface;
m = wlr_layer_surface->output->data;
wl_list_insert(&m->layers[wlr_layer_surface->client_pending.layer],
wl_list_insert(&m->layers[wlr_layer_surface->pending.layer],
&layersurface->link);
// Temporarily set the layer's current state to client_pending
// Temporarily set the layer's current state to pending
// so that we can easily arrange it
old_state = wlr_layer_surface->current;
wlr_layer_surface->current = wlr_layer_surface->client_pending;
wlr_layer_surface->current = wlr_layer_surface->pending;
arrangelayers(m);
wlr_layer_surface->current = old_state;
}