Fix the kitty shell launched via a mapping needlessly requiring :opt:allow_remote_control to be turned on.
This commit is contained in:
parent
601a6c9e3d
commit
b15e58621c
@ -51,6 +51,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
|
|
||||||
- macOS: Notarize the kitty application (:iss:`2040`)
|
- macOS: Notarize the kitty application (:iss:`2040`)
|
||||||
|
|
||||||
|
- Fix the kitty shell launched via a mapping needlessly requiring
|
||||||
|
:opt:`allow_remote_control` to be turned on.
|
||||||
|
|
||||||
|
|
||||||
0.17.4 [2020-05-09]
|
0.17.4 [2020-05-09]
|
||||||
--------------------
|
--------------------
|
||||||
|
|||||||
@ -948,19 +948,24 @@ class Boss:
|
|||||||
if aw is not None:
|
if aw is not None:
|
||||||
kw['env'] = {'KITTY_SHELL_ACTIVE_WINDOW_ID': str(aw.id)}
|
kw['env'] = {'KITTY_SHELL_ACTIVE_WINDOW_ID': str(aw.id)}
|
||||||
if window_type == 'tab':
|
if window_type == 'tab':
|
||||||
self._new_tab(SpecialWindow(cmd, **kw))
|
tab = self._new_tab(SpecialWindow(cmd, **kw))
|
||||||
|
if tab is not None:
|
||||||
|
for w in tab:
|
||||||
|
w.allow_remote_control = True
|
||||||
elif window_type == 'os_window':
|
elif window_type == 'os_window':
|
||||||
os_window_id = self._new_os_window(SpecialWindow(cmd, **kw))
|
os_window_id = self._new_os_window(SpecialWindow(cmd, **kw))
|
||||||
self.os_window_map[os_window_id]
|
for tab in self.os_window_map[os_window_id]:
|
||||||
|
for w in tab:
|
||||||
|
w.allow_remote_control = True
|
||||||
elif window_type == 'overlay':
|
elif window_type == 'overlay':
|
||||||
tab = self.active_tab
|
tab = self.active_tab
|
||||||
if aw is not None and tab is not None:
|
if aw is not None and tab is not None:
|
||||||
kw['overlay_for'] = aw.id
|
kw['overlay_for'] = aw.id
|
||||||
tab.new_special_window(SpecialWindow(cmd, **kw))
|
tab.new_special_window(SpecialWindow(cmd, **kw), allow_remote_control=True)
|
||||||
else:
|
else:
|
||||||
tab = self.active_tab
|
tab = self.active_tab
|
||||||
if tab is not None:
|
if tab is not None:
|
||||||
tab.new_special_window(SpecialWindow(cmd, **kw))
|
tab.new_special_window(SpecialWindow(cmd, **kw), allow_remote_control=True)
|
||||||
|
|
||||||
def switch_focus_to(self, window_id: int) -> None:
|
def switch_focus_to(self, window_id: int) -> None:
|
||||||
tab = self.active_tab
|
tab = self.active_tab
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user