Fix drops being sent to invisbile windows in stack layout

This commit is contained in:
Kovid Goyal
2026-03-10 20:30:45 +05:30
parent 4706243380
commit 03376dc704

View File

@@ -1958,6 +1958,7 @@ class Boss:
y -= central.top y -= central.top
if tab := tm.active_tab: if tab := tm.active_tab:
for window in tab: for window in tab:
if window.is_visible_in_layout:
g = window.geometry g = window.geometry
if g.left <= x < g.right and g.top <= y < g.bottom: if g.left <= x < g.right and g.top <= y < g.bottom:
window.on_drop(drop) window.on_drop(drop)