From 856e5680b4a731c1f78c58e5a92de2a526a94b04 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 Feb 2026 21:29:28 +0530 Subject: [PATCH] DRYer --- kitty/boss.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/boss.py b/kitty/boss.py index 0a0e31adf..0c69bab1c 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -1891,10 +1891,12 @@ class Boss: return central, tab_bar = viewport_for_window(os_window_id)[:2] if central.left <= x < central.right and central.top <= y < central.bottom: + x -= central.left + y -= central.top if tab := tm.active_tab: for window in tab: g = window.geometry - if g.left <= x - central.left < g.right and g.top <= y - central.top < g.bottom: + if g.left <= x < g.right and g.top <= y < g.bottom: window.on_drop(drop) break elif tab_bar.left <= x < tab_bar.right and tab_bar.top <= y < central.bottom: