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:
parent
7d08b08470
commit
abca474d44
1 changed files with 3 additions and 0 deletions
|
@ -401,6 +401,9 @@ class InternalWindowEventFilter : public InputEventFilter {
|
|||
if (!w->isVisible()) {
|
||||
continue;
|
||||
}
|
||||
if (!screens()->geometry().contains(w->geometry())) {
|
||||
continue;
|
||||
}
|
||||
found = w;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue