mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-11 18:32:12 +02:00
Only do manual focus follows mouse on macOS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user