diff options
author | Kai Uwe Broulik <kde@privat.broulik.de> | 2024-02-20 17:53:19 +0100 |
---|---|---|
committer | Kai Uwe Broulik <kde@privat.broulik.de> | 2024-02-22 14:47:12 +0000 |
commit | 853bbee25514132dfe00ec9d55fbdcb39365926e (patch) | |
tree | 7d46a965d8e1b3c994002e0ba0306b95ce690622 /src | |
parent | 9db8724e1111ad2d7cd10f4a6df42cfb395a37be (diff) |
QWaylandDataDevice: Explicitly send null for rejected drag offer
qtwaylandscanner sends an empty string for a null QString
but `wl_data_offer.accept` uses null for "not accepted".
Pick-to: 6.7 6.6 6.5
Change-Id: I793d4315c9775a4bdc63085231318db8df829c8a
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/client/qwaylanddatadevice.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/qwaylanddatadevice.cpp b/src/client/qwaylanddatadevice.cpp index a59b201f6..a8d1748f2 100644 --- a/src/client/qwaylanddatadevice.cpp +++ b/src/client/qwaylanddatadevice.cpp @@ -336,7 +336,8 @@ void QWaylandDataDevice::sendResponse(Qt::DropActions supportedActions, const QP m_dragOffer->accept(m_enterSerial, m_dragOffer->firstFormat()); } else { - m_dragOffer->accept(m_enterSerial, QString()); + // qtwaylandscanner doesn't support null strings yet (sends empty string), call it directly. + ::wl_data_offer_accept(m_dragOffer->object(), m_enterSerial, nullptr); } } |