mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 00:41:28 +00:00
layer-shell: handle commits from uninitialized surfaces
Fixes: 2c69e19fd3
This commit is contained in:
parent
e8c421e917
commit
3a942f565d
|
@ -205,9 +205,6 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) {
|
||||||
wl_container_of(listener, surface, surface_commit);
|
wl_container_of(listener, surface, surface_commit);
|
||||||
|
|
||||||
struct wlr_layer_surface_v1 *layer_surface = surface->layer_surface;
|
struct wlr_layer_surface_v1 *layer_surface = surface->layer_surface;
|
||||||
if (!layer_surface->initialized) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t committed = layer_surface->current.committed;
|
uint32_t committed = layer_surface->current.committed;
|
||||||
if (committed & WLR_LAYER_SURFACE_V1_STATE_LAYER) {
|
if (committed & WLR_LAYER_SURFACE_V1_STATE_LAYER) {
|
||||||
|
|
Loading…
Reference in a new issue