From 3b8af02be94a510e385f44d58c35c86bb89424a6 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 08:41:51 +0300 Subject: refactor: simplify public API and isolate native extensions Separate loop/timer and native interoperability APIs from the portable surface header. Unify dispatch, geometry queries, and timer callbacks; keep framebuffer bookkeeping and frame clocks private, and hide implementation symbols. Update backends, documentation, examples, and API/integration coverage. Verify exports, strict C/C++ installed consumers, and normal plus ASan/UBSan suites. --- src/wayland/buffer.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/wayland/buffer.c') diff --git a/src/wayland/buffer.c b/src/wayland/buffer.c index 3f9cf84..a1486fa 100644 --- a/src/wayland/buffer.c +++ b/src/wayland/buffer.c @@ -446,8 +446,7 @@ bool wayland_surface_present(struct wayland_surface *w, const struct yasl_frameb { if (!w || w->closed || !w->frame_active || w->frame_presented || !fb || !damage || fb->pixels != w->frame.target.pixels || - fb->size.x != w->width || fb->size.y != w->height || - fb->buffer != w->cur || fb->native_drawable || fb->transaction) + fb->size.x != w->width || fb->size.y != w->height) return false; w->damage = *damage; @@ -491,11 +490,6 @@ void surface_draw_frame(struct wayland_surface *w) .generation = yasl_frame_begin(&w->base), .pixels = w->buffers[idx].pixels, .size = { .x = w->width, .y = w->height }, - .buffer = idx, - .cleared = w->parent != NULL, - .damage = &w->damage, - .native_drawable = NULL, - .transaction = false, }, }; w->frame_active = true; -- cgit v1.2.3