diff options
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}; |
