From a553abf3c46133f76b9a9e3c8166099efbcb9bcf Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 14:44:58 +0300 Subject: wayland: make conn_surface_for static inline zero-lookup accessor --- tests/wayland/test_cursor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/wayland/test_cursor.c') diff --git a/tests/wayland/test_cursor.c b/tests/wayland/test_cursor.c index e43bff4..f7a7ba7 100644 --- a/tests/wayland/test_cursor.c +++ b/tests/wayland/test_cursor.c @@ -55,6 +55,7 @@ int main(void) struct wayland_surface surface = {.base.display = &display.base, .conn = &display, .scale_factor = 1, .cursor = YASL_CURSOR_TEXT}; surface.surface = (struct wl_surface *)&surface; + wl_surface_set_user_data(surface.surface, &surface); display.surfaces = &surface; struct seat seat = {.conn = &display}; seat.pointer = (struct wl_pointer *)&seat; -- cgit v1.2.3