wayland: Set a pixmap while DND

Since our source window isn't moving, let's at least show a copy
of it on the pixmap

A bunch of tearing going on kwin_wayland/nvidia though.
Weston/nvidia is fine.
Haven't tried kwin_wayland/Intel yet
This commit is contained in:
Sergio Martins
2020-10-15 19:09:38 +01:00
parent f3d7400c15
commit 52fddaa1cd
3 changed files with 21 additions and 0 deletions

View File

@@ -331,6 +331,7 @@ void StateDraggingWayland::onEntry(QEvent *)
auto mimeData = new WaylandMimeData();
QDrag drag(this);
drag.setMimeData(mimeData);
drag.setPixmap(q->m_windowBeingDragged->pixmap());
qApp->installEventFilter(q);
const Qt::DropAction result = drag.exec();