summaryrefslogtreecommitdiff
path: root/src/wayland/popup.c
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-12 15:14:41 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-12 15:14:41 +0300
commit4145406fae437dce2f0af6e078e35566634f2c19 (patch)
tree689e3ab0e0033fc47be0b2d590b864692c936dcc /src/wayland/popup.c
parent5d1eaf3beffd3653fc4c26b0557c77026bbd6bfc (diff)
perf: unify platform-independent state, branchless queue masking and native handle caching
Diffstat (limited to 'src/wayland/popup.c')
-rw-r--r--src/wayland/popup.c3
1 files changed, 3 insertions, 0 deletions
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;