summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorRené Meusel <rene.meusel@nexenio.com>2020-09-07 16:39:12 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-09-18 17:47:50 +0000
commitcdc7bff115c296474ea871549da91de09c3a020d (patch)
tree218a4d37307a2779002cfbe468ab30ae55a696a5 /src/plugins/platforms
parentaf22ccf5605c6b7b20b845fb2b4003d3f56d8bc9 (diff)
Handle NSEvent*MouseDragged in QCocoaWindow::startSystemMove()
The documentation for [NSWindow performWindowDragWithEvent:] only mentions mouse-down events, but starting a drag from move and drag events works too, so include them as well. Pick-to: 5.15 Fixes: QTBUG-85105 Change-Id: Ib6c29ed4035bfccc61d50a7f95f564fb3d56fcf6 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/cocoa/qcocoawindow.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm
index 651ae0495d..38aa343d4f 100644
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -306,6 +306,9 @@ bool QCocoaWindow::startSystemMove()
case NSEventTypeRightMouseDown:
case NSEventTypeOtherMouseDown:
case NSEventTypeMouseMoved:
+ case NSEventTypeLeftMouseDragged:
+ case NSEventTypeRightMouseDragged:
+ case NSEventTypeOtherMouseDragged:
// The documentation only describes starting a system move
// based on mouse down events, but move events also work.
[m_view.window performWindowDragWithEvent:NSApp.currentEvent];