summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandwindow.cpp
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-08-10 11:54:54 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-08-13 07:49:35 +0000
commitb1bff5a1b23a41cb7d6b3efe4469331ff14decc0 (patch)
tree1b16b2bf2a83582807dc2a34ffa2e6622d5d5ca7 /src/client/qwaylandwindow.cpp
parent617341751630be295f9e3dc0a9ea630de61ee345 (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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index 9378f9ce..df9e8437 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;
}