mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
Only do manual focus follows mouse on macOS
This commit is contained in:
@@ -40,7 +40,7 @@ Changelog
|
|||||||
- kitty @ new-window: Add a new option :option:`kitty @ new-window --window-type`
|
- kitty @ new-window: Add a new option :option:`kitty @ new-window --window-type`
|
||||||
to create top-level OS windows (:iss:`770`)
|
to create top-level OS windows (:iss:`770`)
|
||||||
|
|
||||||
- The :opt:`focus_follows_mouse` option now also works across top-level kitty OS windows
|
- macOS: The :opt:`focus_follows_mouse` option now also works across top-level kitty OS windows
|
||||||
(:iss:`754`)
|
(:iss:`754`)
|
||||||
|
|
||||||
- Fix detection of URLs in HTML source code (URLs inside quotes) (:iss:`785`)
|
- Fix detection of URLs in HTML source code (URLs inside quotes) (:iss:`785`)
|
||||||
|
|||||||
@@ -478,9 +478,13 @@ focus_in_event() {
|
|||||||
|
|
||||||
void
|
void
|
||||||
enter_event() {
|
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) {
|
if (OPT(focus_follows_mouse) && !global_state.callback_os_window->is_focused) {
|
||||||
focus_os_window(global_state.callback_os_window, false);
|
focus_os_window(global_state.callback_os_window, false);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user