diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-08-10 11:54:54 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-08-13 07:49:35 +0000 |
commit | b1bff5a1b23a41cb7d6b3efe4469331ff14decc0 (patch) | |
tree | 1b16b2bf2a83582807dc2a34ffa2e6622d5d5ca7 /src/client/qwaylandwindow.cpp | |
parent | 617341751630be295f9e3dc0a9ea630de61ee345 (diff) |
Client decorations: Don't spam mouse leave events
Previously, we would send one leave event each time the mouse was moved on the
decorations.
Change-Id: I57bd6e57261447db8a8c5ab45dc8f3fdfed33a49
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/client/qwaylandwindow.cpp')
-rw-r--r-- | src/client/qwaylandwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index 9378f9ceb..df9e8437e 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -837,8 +837,10 @@ void QWaylandWindow::handleMouseEventWithDecoration(QWaylandInputDevice *inputDe { if (mMousePressedInContentArea == Qt::NoButton && mWindowDecoration->handleMouse(inputDevice, e.local, e.global, e.buttons, e.modifiers)) { - if (mMouseEventsInContentArea) + if (mMouseEventsInContentArea) { QWindowSystemInterface::handleLeaveEvent(window()); + mMouseEventsInContentArea = false; + } return; } |