From 32d013241acc80f95133f8c9b5a31e37af854e8e Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 30 Sep 2025 03:15:32 +0000 Subject: [PATCH] better git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@74 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 7287619..a0ef5de 100644 --- a/src/core.c +++ b/src/core.c @@ -128,6 +128,7 @@ void MwDestroyWidget(MwWidget handle) { void MwStep(MwWidget handle) { int i; + if(setjmp(handle->before_step)) return; for(i = 0; i < arrlen(handle->children); i++) MwStep(handle->children[i]); MwLLNextEvent(handle->lowlevel); } @@ -142,8 +143,6 @@ int MwPending(MwWidget handle) { void MwLoop(MwWidget handle) { while(!handle->close) { - setjmp(handle->before_step); - MwStep(handle); MwDispatchUserHandler(handle, MwNtickHandler, NULL);