From 4145406fae437dce2f0af6e078e35566634f2c19 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 15:14:41 +0300 Subject: perf: unify platform-independent state, branchless queue masking and native handle caching --- src/wayland/popup.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wayland/popup.c') diff --git a/src/wayland/popup.c b/src/wayland/popup.c index 4364934..3a85435 100644 --- a/src/wayland/popup.c +++ b/src/wayland/popup.c @@ -147,6 +147,9 @@ struct wayland_surface *wayland_surface_create_popup(struct wayland_surface *par w->surface = wl_compositor_create_surface(c->compositor); if (!w->surface) goto err; + w->base.native_handle = w->surface; + w->base.size = (struct yasl_vector2i){spec->size.x, spec->size.y}; + w->base.scale_120 = parent->scale_120; wl_surface_set_user_data(w->surface, w); if (surface_init_scaling(w) < 0) goto err; -- cgit v1.2.3