From 24b43e8ca5aa4d0248285354f92d4c88ce368070 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Thu, 12 Dec 2013 22:32:34 +0100 Subject: Fix decoration behavior when passing over with button pressed Fix the decoration resizing or moving the window when passing over it with the mouse button pressed, but which was not clicked over the decoration. Change-Id: If5d1d041ae6f80a07ce83bdca92dab35f721f2eb Reviewed-by: Pier Luigi Fiorini Reviewed-by: Andy Nichols --- src/plugins/platforms/wayland_common/qwaylanddecoration.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins') diff --git a/src/plugins/platforms/wayland_common/qwaylanddecoration.cpp b/src/plugins/platforms/wayland_common/qwaylanddecoration.cpp index a4b978330..74c01f93a 100644 --- a/src/plugins/platforms/wayland_common/qwaylanddecoration.cpp +++ b/src/plugins/platforms/wayland_common/qwaylanddecoration.cpp @@ -327,6 +327,7 @@ bool QWaylandDecoration::handleMouse(QWaylandInputDevice *inputDevice, const QPo processMouseRight(inputDevice,local,b,mods); } else { m_wayland_window->restoreMouseCursor(inputDevice); + m_mouseButtons = b; return false; } -- cgit v1.2.3