Don't handle mouse events in decos if buttons were pressed in the content area
This fixes the decorations stealing the mouse events when going outside the content area. Change-Id: I8f3592fbda6b9c1da6498d74820a73be11c6999d Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
This commit is contained in:
parent
5c897fb1ab
commit
f9ad726e65
@ -619,7 +619,8 @@ bool QWaylandWindow::touchDragDecoration(QWaylandInputDevice *inputDevice, const
|
||||
|
||||
void QWaylandWindow::handleMouseEventWithDecoration(QWaylandInputDevice *inputDevice, ulong timestamp, const QPointF &local, const QPointF &global, Qt::MouseButtons b, Qt::KeyboardModifiers mods)
|
||||
{
|
||||
if (mWindowDecoration->handleMouse(inputDevice,local,global,b,mods))
|
||||
if (mMousePressedInContentArea == Qt::NoButton &&
|
||||
mWindowDecoration->handleMouse(inputDevice,local,global,b,mods))
|
||||
return;
|
||||
|
||||
QMargins marg = frameMargins();
|
||||
|
Loading…
x
Reference in New Issue
Block a user