The focus_follows_mouse option now also works across top-level kitty OS windows

Fixes #772
This commit is contained in:
Kovid Goyal
2018-07-30 21:26:20 +05:30
parent 78def6e6bf
commit 9af3081f45
8 changed files with 48 additions and 8 deletions
+3 -2
View File
@@ -499,9 +499,10 @@ PYWRAP1(mark_os_window_for_close) {
PYWRAP1(focus_os_window) {
id_type os_window_id;
PA("K", &os_window_id);
int also_raise = 1;
PA("K|p", &os_window_id, &also_raise);
WITH_OS_WINDOW(os_window_id)
if (!os_window->is_focused) focus_os_window(os_window);
if (!os_window->is_focused) focus_os_window(os_window, also_raise);
Py_RETURN_TRUE;
END_WITH_OS_WINDOW
Py_RETURN_FALSE;