This commit is contained in:
Kovid Goyal
2020-01-31 07:58:55 +05:30
13 changed files with 281 additions and 45 deletions
+5 -3
View File
@@ -60,11 +60,13 @@ class Borders:
active_window,
current_layout,
extra_blank_rects,
draw_window_borders=True
draw_window_borders=True,
draw_blank_rects=False
):
add_borders_rect(self.os_window_id, self.tab_id, 0, 0, 0, 0, BorderColor.default_bg)
for br in chain(current_layout.blank_rects, extra_blank_rects):
add_borders_rect(self.os_window_id, self.tab_id, *br, BorderColor.default_bg)
if draw_blank_rects:
for br in chain(current_layout.blank_rects, extra_blank_rects):
add_borders_rect(self.os_window_id, self.tab_id, *br, BorderColor.default_bg)
bw, pw = self.border_width, self.padding_width
if bw + pw <= 0:
return