summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2018-08-23 08:40:03 +0200
committerJohan Helsing <johan.helsing@qt.io>2018-08-27 11:49:27 +0000
commit048fa7f52cbfee1351e5c2d6420f438fa733106e (patch)
tree7afc545d6b356b27b9cf29723dbbb7e9146cd53e
parent334822b742cb15bb27dbc14b45d41e2714eef767 (diff)
Compositor: Fix resize grab release for xdg-shell-v6
The grab was only released for the move state, so if a window was resized, it would continue to be in the resize state until it was moved. This makes sure all grabs are released when the mouse is released. [ChangeLog][Compositor] Fixed a bug where ShellSurfaceItems for XdgToplevelV6s wouldn't stop resizing. Task-number: QTBUG-70126 Change-Id: I37d8359dca5f21f2fb52b781a94846a961211a02 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--src/compositor/extensions/qwaylandxdgshellv6integration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshellv6integration.cpp b/src/compositor/extensions/qwaylandxdgshellv6integration.cpp
index 17ee10db7..94a03ec02 100644
--- a/src/compositor/extensions/qwaylandxdgshellv6integration.cpp
+++ b/src/compositor/extensions/qwaylandxdgshellv6integration.cpp
@@ -95,7 +95,7 @@ bool XdgToplevelV6Integration::mouseReleaseEvent(QMouseEvent *event)
{
Q_UNUSED(event);
- if (grabberState == GrabberState::Move) {
+ if (grabberState != GrabberState::Default) {
grabberState = GrabberState::Default;
return true;
}