diff --git a/input.cpp b/input.cpp index ed2439aca2..e216b78106 100644 --- a/input.cpp +++ b/input.cpp @@ -401,6 +401,9 @@ class InternalWindowEventFilter : public InputEventFilter { if (!w->isVisible()) { continue; } + if (!screens()->geometry().contains(w->geometry())) { + continue; + } found = w; break; }