diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-12 00:29:34 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-12 00:29:34 +0300 |
| commit | f7fa0930cb46046f995fa1ab927aef62466e995e (patch) | |
| tree | f5ac4e1579811b5d69498a19d0bdfbf128a1d62b /src/wayland | |
| parent | 624d1371304a5ae4b3429ad5e4267aac7cd03dfd (diff) | |
feat: add SDL3-style surface, display, and loop timer API for X11, Wayland, and Cocoa
Diffstat (limited to 'src/wayland')
| -rw-r--r-- | src/wayland/surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
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}; |
