Remote control: Allow matching the parent of an overlay window

This commit is contained in:
Kovid Goyal
2022-12-30 11:29:05 +05:30
parent 080d1bf935
commit c18bff7821
4 changed files with 34 additions and 8 deletions

View File

@@ -496,6 +496,14 @@ class Tab: # {{{
def move_window_to_top_of_group(self, window: Window) -> bool:
return self.windows.move_window_to_top_of_group(window)
def overlay_parent(self, window: Window) -> Optional[Window]:
prev: Optional[Window] = None
for x in self.windows.windows_in_group_of(window):
if x is window:
break
prev = x
return prev
def remove_window(self, window: Window, destroy: bool = True) -> None:
self.windows.remove_window(window)
if destroy: