Merge "Merge remote-tracking branch 'origin/5.12' into 5.13"
This commit is contained in:
commit
f87f59d9e5
@ -111,7 +111,10 @@ void QWaylandDataDevice::startDrag(QMimeData *mimeData, QWaylandWindow *icon)
|
|||||||
if (!origin)
|
if (!origin)
|
||||||
origin = m_display->currentInputDevice()->touchFocus();
|
origin = m_display->currentInputDevice()->touchFocus();
|
||||||
|
|
||||||
|
if (origin)
|
||||||
start_drag(m_dragSource->object(), origin->object(), icon->object(), m_display->currentInputDevice()->serial());
|
start_drag(m_dragSource->object(), origin->object(), icon->object(), m_display->currentInputDevice()->serial());
|
||||||
|
else
|
||||||
|
qCDebug(lcQpaWayland) << "Couldn't start a drag because the origin window could not be found.";
|
||||||
}
|
}
|
||||||
|
|
||||||
void QWaylandDataDevice::cancelDrag()
|
void QWaylandDataDevice::cancelDrag()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user