Merge branch 'fix-rc-launch' of https://github.com/page-down/kitty

This commit is contained in:
Kovid Goyal 2022-06-19 09:38:30 +05:30
commit 60cc2cb26c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 8 additions and 3 deletions

View File

@ -47,6 +47,8 @@ Detailed list of changes
- Fix horizontal wheel events not being reported to client programs when they grab the mouse (:iss:`2819`)
- Remote control: Fix unable to launch a new OS window or background process when there is no OS window (:iss:`5210`)
0.25.2 [2022-06-07]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -81,11 +81,14 @@ instead of the active tab
if val is None:
val = default_value
setattr(opts, key, val)
target_tab = None
tabs = self.tabs_for_match_payload(boss, window, payload_get)
if tabs and tabs[0]:
w = do_launch(boss, opts, payload_get('args') or [], target_tab=tabs[0])
return None if payload_get('no_response') else str(getattr(w, 'id', 0))
return None
target_tab = tabs[0]
elif payload_get('type') not in ('os-window', 'background'):
return None
w = do_launch(boss, opts, payload_get('args') or [], target_tab=target_tab)
return None if payload_get('no_response') else str(getattr(w, 'id', 0))
launch = Launch()