Keep global_watchers immutable
This commit is contained in:
parent
b3ae857f3c
commit
baf8976c2d
1 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ def copy(self) -> 'Watchers':
|
|||
ans = Watchers()
|
||||
ans.on_close = self.on_close[:]
|
||||
ans.on_resize = self.on_resize[:]
|
||||
ans.on_focus_change = self.on_focus_change
|
||||
ans.on_focus_change = self.on_focus_change[:]
|
||||
return ans
|
||||
|
||||
@property
|
||||
|
|
@ -356,7 +356,7 @@ def __init__(
|
|||
self.watchers = watchers
|
||||
self.watchers.add(global_watchers())
|
||||
else:
|
||||
self.watchers = global_watchers()
|
||||
self.watchers = global_watchers().copy()
|
||||
self.current_mouse_event_button = 0
|
||||
self.current_clipboard_read_ask: Optional[bool] = None
|
||||
self.prev_osc99_cmd = NotificationCommand()
|
||||
|
|
|
|||
Loading…
Reference in a new issue