I've bisected this to https://github.com/geany/geany/pull/3267. The original code contained the `switch_to_session_page()` function which emitted the `switch-page` signal even in the case when the right tab was already selected (so no real switch happened) which then lead to correct "document-activate" emission from `on_notebook1_switch_page_after()`.
-- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/3684#issuecomment-2081667888 You are receiving this because you are subscribed to this thread. Message ID: <geany/geany/issues/3684/[email protected]>
