Commit 94d91e64 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Remove redundant Window::isClient() call

Unmanaged windows are on all desktops, activities, not hidden and not
minimized.
parent 74482b2e
Pipeline #174364 passed with stage
in 25 minutes and 49 seconds
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment