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:
parent
7a8bc6b5d2
commit
62cb035afe
2 changed files with 5 additions and 1 deletions
|
|
@ -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]
|
||||
------------------------------
|
||||
|
|
|
|||
|
|
@ -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
|
||||
# }}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue