mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
layer-shell: chase wlr_layer_surface refactor
This commit is contained in:
parent
97e8cb45ec
commit
329ca691da
1 changed files with 3 additions and 3 deletions
|
|
@ -342,14 +342,14 @@ new_layer_surface_notify(struct wl_listener *listener, void *data)
|
||||||
surface->unmap.notify = unmap_notify;
|
surface->unmap.notify = unmap_notify;
|
||||||
wl_signal_add(&layer_surface->events.unmap, &surface->unmap);
|
wl_signal_add(&layer_surface->events.unmap, &surface->unmap);
|
||||||
|
|
||||||
wl_list_insert(&output->layers[layer_surface->client_pending.layer],
|
wl_list_insert(&output->layers[layer_surface->pending.layer],
|
||||||
&surface->link);
|
&surface->link);
|
||||||
/*
|
/*
|
||||||
* Temporarily set the layer's current state to client_pending so that
|
* Temporarily set the layer's current state to pending so that
|
||||||
* it can easily be arranged.
|
* it can easily be arranged.
|
||||||
*/
|
*/
|
||||||
struct wlr_layer_surface_v1_state old_state = layer_surface->current;
|
struct wlr_layer_surface_v1_state old_state = layer_surface->current;
|
||||||
layer_surface->current = layer_surface->client_pending;
|
layer_surface->current = layer_surface->pending;
|
||||||
arrange_layers(output);
|
arrange_layers(output);
|
||||||
layer_surface->current = old_state;
|
layer_surface->current = old_state;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue