From 6f79bd03264cc5758fc814af377aae27ef930da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Tue, 8 Aug 2023 23:51:48 +0200 Subject: [PATCH] Swap transition count and listener order --- monarch/monarch.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monarch/monarch.lua b/monarch/monarch.lua index 66c03be..5bfaaf4 100644 --- a/monarch/monarch.lua +++ b/monarch/monarch.lua @@ -715,8 +715,8 @@ local function back_out(screen, next_screen, wait_for_transition, cb) log("back_out()", screen.id) assert(wait_for_transition ~= nil) run_coroutine(screen, cb, function() - notify_transition_listeners(M.SCREEN_TRANSITION_OUT_STARTED, { screen = screen.id, next_screen = next_screen and next_screen.id }) active_transition_count = active_transition_count + 1 + notify_transition_listeners(M.SCREEN_TRANSITION_OUT_STARTED, { screen = screen.id, next_screen = next_screen and next_screen.id }) change_context(screen) release_input(screen, next_screen) focus_lost(screen, next_screen)