diff --git a/src/gui/kernel/qevent.cpp b/src/gui/kernel/qevent.cpp index fe1a748cbe..c7c3953ce7 100644 --- a/src/gui/kernel/qevent.cpp +++ b/src/gui/kernel/qevent.cpp @@ -264,12 +264,13 @@ QEventPoint *QPointerEvent::pointById(int id) } /*! - Returns \c true if every point in points() has an exclusiveGrabber(). + Returns \c true if every point in points() has either an exclusiveGrabber() + or one or more passiveGrabbers(). */ bool QPointerEvent::allPointsGrabbed() const { for (const auto &p : points()) { - if (exclusiveGrabber(p) && passiveGrabbers(p).isEmpty()) + if (!exclusiveGrabber(p) && passiveGrabbers(p).isEmpty()) return false; } return true;