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.
This commit is contained in:
Martin Gräßlin 2016-03-09 22:21:10 +01:00
parent 7d08b08470
commit abca474d44

View file

@ -401,6 +401,9 @@ class InternalWindowEventFilter : public InputEventFilter {
if (!w->isVisible()) {
continue;
}
if (!screens()->geometry().contains(w->geometry())) {
continue;
}
found = w;
break;
}