https://bugs.kde.org/show_bug.cgi?id=379635

--- Comment #14 from Andrius Štikonas <andr...@stikonas.eu> ---
Not sure if I understood correctly what is the patch from bug #398566 (as it
has no context lines at all) but the patch that I tried improves situation but
doesn't completely resolve it.

diff --git a/popup_input_filter.cpp b/popup_input_filter.cpp
index fc74540ed..c9e93c559 100644
--- a/popup_input_filter.cpp
+++ b/popup_input_filter.cpp
@@ -65,13 +65,9 @@ bool PopupInputFilter::pointerEvent(QMouseEvent *event,
quint32 nativeButton)
             // filter out this press
             return true;
         }
-        if (pointerFocus && pointerFocus->isDecorated()) {
-            // test whether it is on the decoration
-            const QRect clientRect = QRect(pointerFocus->clientPos(),
pointerFocus->clientSize()).translated(pointerFocus->pos());
-            if (!clientRect.contains(event->globalPos())) {
-                cancelPopups();
-                return true;
-            }
+        if (!m_popupClients.contains(pointerFocus)) {
+            cancelPopups();
+            return true;
         }
     }
     return false;

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to