Do not pass input to windows that are not painted

Passing input to windows that we do not paint is confusing as what happens
is different from what is visible on the screen.
This commit is contained in:
David Redondo 2021-07-30 16:22:37 +02:00
parent 141f627413
commit 09f786a209

View file

@ -2657,6 +2657,9 @@ Toplevel *InputRedirection::findManagedToplevel(const QPoint &pos)
if (!t->readyForPainting()) {
continue;
}
if (!t->effectWindow()->isPaintingEnabled()) {
continue;
}
if (isScreenLocked) {
if (!t->isLockScreen() && !t->isInputMethod()) {
continue;