From 94d91e6404e1d4664c0666e64dc097c48385dac1 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 9 May 2022 19:11:28 +0300 Subject: [PATCH] Remove redundant Window::isClient() call Unmanaged windows are on all desktops, activities, not hidden and not minimized. --- src/input.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/input.cpp b/src/input.cpp index cfd6a565d6..7dcca49197 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -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;