From ed963bba0b234d52fda14b2a8237dbf02ef4d655 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Tue, 13 Oct 2026 16:24:56 +0300 Subject: Quit on window close when the app has no event callback Without yasl_app_desc.event, a close request had nowhere to go and the window stayed open. The runner now stops instead, so hello drops its event callback. Co-Authored-By: Claude Opus 5.5 --- tests/common/test_hello_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/common') diff --git a/tests/common/test_hello_example.c b/tests/common/test_hello_example.c index c648038..101e2d4 100644 --- a/tests/common/test_hello_example.c +++ b/tests/common/test_hello_example.c @@ -14,7 +14,7 @@ int main(void) struct yasl_window_spec window = {.title = "Hello YASL", .size = {640, 480}}; struct yasl_app_desc desc = { .app_id = "org.yasl.test.hello", .window = &window, - .event = event, .frame = draw_once, + .frame = draw_once, }; return yasl_run(&desc) || failed ? 1 : 0; } -- cgit v1.2.3