Fix incorrect window border drawing for overlay windows

This commit is contained in:
Kovid Goyal 2018-02-06 09:41:19 +05:30
parent 6c7247f726
commit b8ab15bea8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -99,8 +99,9 @@ class Tab: # {{{
def relayout_borders(self): def relayout_borders(self):
tm = self.tab_manager_ref() tm = self.tab_manager_ref()
if tm is not None: if tm is not None:
self.borders(self.windows, self.active_window, self.current_layout, visible_windows = [w for w in self.windows if w.is_visible_in_layout]
tm.blank_rects, self.current_layout.needs_window_borders and len(self.windows) > 1) self.borders(visible_windows, self.active_window, self.current_layout,
tm.blank_rects, self.current_layout.needs_window_borders and len(visible_windows) > 1)
def create_layout_object(self, idx): def create_layout_object(self, idx):
return all_layouts[idx](self.os_window_id, self.id, self.opts, self.borders.border_width) return all_layouts[idx](self.os_window_id, self.id, self.opts, self.borders.border_width)