Remove redundant Window::isClient() call

Unmanaged windows are on all desktops, activities, not hidden and not
minimized.
This commit is contained in:
Vlad Zahorodnii 2022-05-09 19:11:28 +03:00
parent 74482b2e2d
commit 94d91e6404

View file

@ -3178,10 +3178,8 @@ Window *InputRedirection::findManagedToplevel(const QPoint &pos)
// a deleted window doesn't get mouse events
continue;
}
if (window->isClient()) {
if (!window->isOnCurrentActivity() || !window->isOnCurrentDesktop() || window->isMinimized() || window->isHiddenInternal()) {
continue;
}
if (!window->isOnCurrentActivity() || !window->isOnCurrentDesktop() || window->isMinimized() || window->isHiddenInternal()) {
continue;
}
if (!window->readyForPainting()) {
continue;