macOS: Send Qt::NonClientAreaMouseMove for NSEventTypeMouseMoved in title bar
We were missing the NSEventTypeMouseMoved in resolving the event type for handleFrameStrutMouseEvent, resulting in passing on QEvent::None as the event type to QWSI. Pick-to: 6.5 6.2 Change-Id: I144b6459c5d4fda2839d25cd52ddb441dc7c3a47 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
00f4e5c937
commit
b8f40af176
@ -209,16 +209,15 @@ static const QPointingDevice *pointingDeviceFor(qint64 deviceID)
|
||||
case NSEventTypeOtherMouseUp:
|
||||
return QEvent::NonClientAreaMouseButtonRelease;
|
||||
|
||||
case NSEventTypeMouseMoved:
|
||||
case NSEventTypeLeftMouseDragged:
|
||||
case NSEventTypeRightMouseDragged:
|
||||
case NSEventTypeOtherMouseDragged:
|
||||
return QEvent::NonClientAreaMouseMove;
|
||||
|
||||
default:
|
||||
break;
|
||||
Q_UNREACHABLE();
|
||||
}
|
||||
|
||||
return QEvent::None;
|
||||
}();
|
||||
|
||||
qCInfo(lcQpaMouse) << eventType << "at" << qtWindowPoint << "with" << m_frameStrutButtons << "in" << self.window;
|
||||
|
Loading…
Reference in New Issue
Block a user