summaryrefslogtreecommitdiff
path: root/src/wayland/popup.c
diff options
context:
space:
mode:
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;