diff --git a/CHANGELOG.md b/CHANGELOG.md index 805c3aeb..c1a7f04f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Changed - Update scripting addition for macOS 26.2 Apple Silicon [#2693](https://github.com/asmvik/yabai/issues/2693) - Fix window sub-level query for macOS 26 [#2726](https://github.com/asmvik/yabai/issues/2726) +- Fix focus_follows_mouse where MENU_CLOSED was resetting ffm_mode when called without a corresponding MENU_OPENED [#2740](https://github.com/asmvik/yabai/pull/2740) ## [7.1.16] - 2025-10-07 ### Changed diff --git a/src/event_loop.c b/src/event_loop.c index afdb93d9..3996ea75 100644 --- a/src/event_loop.c +++ b/src/event_loop.c @@ -1535,10 +1535,10 @@ static EVENT_HANDLER(MENU_CLOSED) --is_menu_open; if (is_menu_open < 0) { + // Sometimes Chrome apps call MENU_CLOSED without a corresponding MENU_OPENED, + // so just reset the `is_menu_open` and don't reset the FFM mode. is_menu_open = 0; - } - - if (is_menu_open == 0) { + } else if (is_menu_open == 0) { g_window_manager.ffm_mode = ffm_value; } }