Only do manual focus follows mouse on macOS

This commit is contained in:
Kovid Goyal
2018-08-07 07:56:56 +05:30
parent e71c432b7c
commit a92b20f85a
2 changed files with 5 additions and 1 deletions

View File

@@ -478,9 +478,13 @@ focus_in_event() {
void
enter_event() {
#ifdef __APPLE__
// On cocoa there is no way to configure the window manager to
// focus windows on mouse enter, so we do it ourselves
if (OPT(focus_follows_mouse) && !global_state.callback_os_window->is_focused) {
focus_os_window(global_state.callback_os_window, false);
}
#endif
}
void