Skip to content
Snippets Groups Projects
Commit 061ed459 authored by Johan Klokkhammer Helsing's avatar Johan Klokkhammer Helsing Committed by Johan Helsing
Browse files

qwindow-compositor: remove drag icon before dropping


Change-Id: Ief93b5e79d3a51e4d20387357ad2abe15bf1a695
Reviewed-by: default avatarGiulio Camuffo <giulio.camuffo@kdab.com>
parent 0a8ff3b3
No related branches found
No related tags found
No related merge requests found
......@@ -456,8 +456,10 @@ void Compositor::handleDrag(View *target, QMouseEvent *me)
}
QWaylandDrag *currentDrag = defaultInputDevice()->drag();
currentDrag->dragMove(surface, pos);
if (me->buttons() == Qt::NoButton)
if (me->buttons() == Qt::NoButton) {
m_views.removeOne(findView(currentDrag->icon()));
currentDrag->drop();
}
}
// We only have a flat list of views, plus pointers from child to parent,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment