From f7fa0930cb46046f995fa1ab927aef62466e995e Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 00:29:34 +0300 Subject: feat: add SDL3-style surface, display, and loop timer API for X11, Wayland, and Cocoa --- src/wayland/surface.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/wayland/surface.c') diff --git a/src/wayland/surface.c b/src/wayland/surface.c index ef355ab..4f064e2 100644 --- a/src/wayland/surface.c +++ b/src/wayland/surface.c @@ -232,6 +232,7 @@ static void display_free(struct wayland_display *c) if (c->owns_loop && c->loop) { yasl_loop_destroy(c->loop); c->loop = NULL; + c->base.loop = NULL; } free(c->app_id); free(c); @@ -248,6 +249,7 @@ struct wayland_display *wayland_display_open(struct yasl_loop *loop, const struc } else { c->loop = loop; } + c->base.loop = c->loop; if (!c->loop) goto err; if (spec) { c->base.callbacks = spec->cbs ? *spec->cbs : (struct yasl_display_cbs){0}; -- cgit v1.2.3