summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-08-23 09:12:45 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-08-27 11:49:40 +0000
commitde4f9ebea3207e5d7e87390b512f9ae8bb7636cc (patch)
treeba67a7e656d28d7f8c5d52d6ba91077e6b7fde39
parent9a60f0c98c6f01e371071da59b869cd95a8b153a (diff)
Compositor: Fix resize grab release for xdg-shell stable
This is the same bug as QTBUG-70126, but for the stable version. Change-Id: I8cad104d6ebc980835c47d455968b2b9e63c6169 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--src/compositor/extensions/qwaylandxdgshellintegration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshellintegration.cpp b/src/compositor/extensions/qwaylandxdgshellintegration.cpp
index 7701c05ad..cc8faf6c7 100644
--- a/src/compositor/extensions/qwaylandxdgshellintegration.cpp
+++ b/src/compositor/extensions/qwaylandxdgshellintegration.cpp
@@ -109,7 +109,7 @@ bool XdgToplevelIntegration::mouseReleaseEvent(QMouseEvent *event)
{
Q_UNUSED(event);
- if (grabberState == GrabberState::Move) {
+ if (grabberState != GrabberState::Default) {
grabberState = GrabberState::Default;
return true;
}