mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 12:08:45 +02:00
The focus_follows_mouse option now also works across top-level kitty OS windows
Fixes #772
This commit is contained in:
@@ -451,6 +451,13 @@ focus_in_event() {
|
||||
if (w && w->render_data.screen) screen_mark_url(w->render_data.screen, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
void
|
||||
enter_event() {
|
||||
if (OPT(focus_follows_mouse) && !global_state.callback_os_window->is_focused) {
|
||||
focus_os_window(global_state.callback_os_window, false);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
mouse_event(int button, int modifiers) {
|
||||
MouseShape old_cursor = mouse_cursor_shape;
|
||||
|
||||
Reference in New Issue
Block a user