Skip to content

Commit

Permalink
koekeishiya#528 reset ffm cache upon space change
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya authored and unrevre committed May 18, 2020
1 parent e88bfbe commit f4b5726
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Properly clear focus-follows-mouse cache upon space change [#528](https://github.com/koekeishiya/yabai/issues/528)

## [3.0.1] - 2020-05-09
### Changed
Expand Down
7 changes: 6 additions & 1 deletion src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,12 @@ static EVENT_CALLBACK(EVENT_HANDLER_SPACE_CHANGED)
struct window *focused_window = window_manager_focused_window(&g_window_manager);
if (focused_window && window_manager_find_lost_focused_event(&g_window_manager, focused_window->id)) {
window_manager_set_window_opacity(&g_window_manager, focused_window, g_window_manager.active_window_opacity);
window_manager_center_mouse(&g_window_manager, focused_window);

if (g_mouse_state.ffm_window_id != focused_window->id) {
window_manager_center_mouse(&g_window_manager, focused_window);
}

g_mouse_state.ffm_window_id = 0;
window_manager_remove_lost_focused_event(&g_window_manager, focused_window->id);
}
}
Expand Down

0 comments on commit f4b5726

Please sign in to comment.