diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c index 3da3af4c9..68efaad4a 100644 --- a/src/platforms/rcore_desktop_rgfw.c +++ b/src/platforms/rcore_desktop_rgfw.c @@ -989,8 +989,10 @@ void PollInputEvents(void) case RGFW_quit: if (CORE.Window.flags & FLAG_WINDOW_ALWAYS_RUN) event->type = 0; - else + else { CORE.Window.shouldClose = true; + return; + } break; case RGFW_DND: // Dropped file {