diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-12 14:44:58 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-12 14:44:58 +0300 |
| commit | a553abf3c46133f76b9a9e3c8166099efbcb9bcf (patch) | |
| tree | 836be926a7bfff99030ceff6b721492b49321c93 /tests/wayland/test_cursor.c | |
| parent | 93ea4e79528ba9f42d57f9004260dcba309492ba (diff) | |
wayland: make conn_surface_for static inline zero-lookup accessor
Diffstat (limited to 'tests/wayland/test_cursor.c')
| -rw-r--r-- | tests/wayland/test_cursor.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
