Remote control: Fix the `focus_window` command not focusing the top-level OS window of the specified kitty window

Fixes #1003
This commit is contained in:
Kovid Goyal 2018-09-22 12:17:35 +05:30
parent 7a8bc6b5d2
commit 62cb035afe
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 1 deletions

View file

@ -64,6 +64,8 @@ Changelog
mouse cursor image that can be seen on both light and dark backgrounds
(:iss:`359`)
- Remote control: Fix the ``focus_window`` command not focusing the
top-level OS window of the specified kitty window (:iss:`1003`)
0.12.1 [2018-09-08]
------------------------------

View file

@ -573,7 +573,9 @@ def focus_window(boss, window, payload):
raise MatchError(match)
for window in windows:
if window:
boss.set_active_window(window)
os_window_id = boss.set_active_window(window)
if os_window_id:
focus_os_window(os_window_id, True)
break
# }}}