Fix blank rects on the sides of the tab bar not being drawn

This commit is contained in:
Kovid Goyal 2018-01-19 16:02:07 +05:30
parent 4f12c91fff
commit 44a413df81
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -286,9 +286,9 @@ class TabBar: # {{{
self.window_geometry = g = WindowGeometry(
margin, tab_bar.top, viewport_width - margin, tab_bar.bottom, s.columns, s.lines)
if margin > 0:
self.tab_bar_blank_rects = (Rect(0, g.top, g.left, g.bottom), Rect(g.right - 1, g.top, viewport_width, g.bottom))
self.blank_rects = (Rect(0, g.top, g.left, g.bottom), Rect(g.right - 1, g.top, viewport_width, g.bottom))
else:
self.tab_bar_blank_rects = ()
self.blank_rects = ()
self.screen_geometry = sg = calculate_gl_geometry(g, vw, vh, cell_width, cell_height)
set_tab_bar_render_data(self.os_window_id, sg.xstart, sg.ystart, sg.dx, sg.dy, self.screen)