mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-07 17:43:53 +02:00
Fix central region 1px offset from bottom of top tab bar
This commit is contained in:
@@ -598,7 +598,7 @@ os_window_regions(OSWindow *os_window, Region *central, Region *tab_bar) {
|
||||
switch(OPT(tab_bar_edge)) {
|
||||
case TOP_EDGE:
|
||||
central->left = 0; central->right = os_window->viewport_width - 1;
|
||||
central->top = os_window->fonts_data->fcm.cell_height + margin_inner + margin_outer;
|
||||
central->top = os_window->fonts_data->fcm.cell_height + margin_inner + margin_outer - 1;
|
||||
central->bottom = os_window->viewport_height - 1;
|
||||
central->top = MIN(central->top, central->bottom);
|
||||
tab_bar->top = margin_outer;
|
||||
|
||||
Reference in New Issue
Block a user