diff --git a/kitty/layout.py b/kitty/layout.py index 8d31e01b3..395e4a0c6 100644 --- a/kitty/layout.py +++ b/kitty/layout.py @@ -254,7 +254,9 @@ def top_blank_rect(w, rects): def bottom_blank_rect(w, rects): b = w.geometry.bottom - if b < central.bottom: + # Need to use <= here as otherwise a single pixel row at the bottom of the + # window is sometimes not covered. See https://github.com/kovidgoyal/kitty/issues/506 + if b <= central.bottom: rects.append(Rect(central.left, b, central.right + 1, central.bottom + 1))