From abca474d443dd55ec8495d4075f179752bc8ccd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 9 Mar 2016 22:21:10 +0100 Subject: [PATCH] Don't pass keyboard events to internal windows outside the screen geometry PresentWindows moves the close button outside the visible area. We don't want that one to take all key events. --- input.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; }