mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-16 00:18:38 +00:00
Fix blank rects on the sides of the tab bar not being drawn
This commit is contained in:
parent
4f12c91fff
commit
44a413df81
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue