From e9e4d46c4c45aaca6c48455a2e9627926c5b54d0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 11 Aug 2025 15:08:51 +0530 Subject: [PATCH] Fix central region 1px offset from bottom of top tab bar --- kitty/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/state.c b/kitty/state.c index 308ebff21..32622cbc8 100644 --- a/kitty/state.c +++ b/kitty/state.c @@ -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;