summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-25 12:42:38 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-11-25 19:17:32 -0600
commit01a237bd5c96da5c4294b20e5093881008401b66 (patch)
tree133c782e58ee223a03497922082c9785dc177ff6
parenta5e068b20a04357b4fc709b1c6f3b698b4dc7094 (diff)
send wl_surface.enter before initial commit
It's not necessary but it'll help clients to render a perfect first frame
-rw-r--r--dwl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 6a96179..09d3ea0 100644
--- a/dwl.c
+++ b/dwl.c
@@ -833,6 +833,7 @@ createlayersurface(struct wl_listener *listener, void *data)
wl_list_insert(&layersurface->mon->layers[wlr_layer_surface->pending.layer],
&layersurface->link);
+ wlr_surface_send_enter(wlr_layer_surface->surface, wlr_layer_surface->output);
/* Temporarily set the layer's current state to pending
* so that we can easily arrange it