send wl_surface.enter before initial commit

It's not necessary but it'll help clients to render a perfect first frame
This commit is contained in:
Leonardo Hernández Hernández 2023-11-25 12:42:38 -06:00
parent a5e068b20a
commit 01a237bd5c
No known key found for this signature in database
GPG key ID: E538897EE11B9624

1
dwl.c
View file

@ -833,6 +833,7 @@ createlayersurface(struct wl_listener *listener, void *data)
wl_list_insert(&layersurface->mon->layers[wlr_layer_surface->pending.layer], wl_list_insert(&layersurface->mon->layers[wlr_layer_surface->pending.layer],
&layersurface->link); &layersurface->link);
wlr_surface_send_enter(wlr_layer_surface->surface, wlr_layer_surface->output);
/* Temporarily set the layer's current state to pending /* Temporarily set the layer's current state to pending
* so that we can easily arrange it * so that we can easily arrange it