allow_remote_control should be per window not per child

This commit is contained in:
Kovid Goyal
2022-08-15 21:32:14 +05:30
parent 1619687d1d
commit 814dd8a275
3 changed files with 5 additions and 7 deletions

View File

@@ -462,6 +462,7 @@ global_watchers = GlobalWatchers()
class Window:
window_custom_type: str = ''
allow_remote_control: bool = False
def __init__(
self,
@@ -495,7 +496,6 @@ class Window:
self.default_title = os.path.basename(child.argv[0] or appname)
self.child_title = self.default_title
self.title_stack: Deque[str] = deque(maxlen=10)
self.allow_remote_control = child.allow_remote_control
self.id: int = add_window(tab.os_window_id, tab.id, self.title)
self.margin = EdgeWidths()
self.padding = EdgeWidths()