Commit 6a0fd1d6 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

xwayland: Emit AbstractDataSource::aboutToBeDestroyed() signal

The seat needs the AbstractDataSource::aboutToBeDestroyed() signal to
properly clean up its tracked primary selection.

BUG: 449101
parent c4bcfd0b
Pipeline #128477 passed with stage
in 25 minutes and 15 seconds
......@@ -9,6 +9,11 @@ namespace KWin
namespace Xwl
Q_EMIT aboutToBeDestroyed();
void XwlDataSource::requestData(const QString &mimeType, qint32 fd)
Q_EMIT dataRequested(mimeType, fd);
......@@ -11,10 +11,21 @@ namespace KWin
namespace Xwl
class XwlDataSource : public KWaylandServer::AbstractDataSource
* The XwlDataSource class represents a data source owned by the Xwayland data bridge. It's
* used as a source in data transfers from X11 clients to Wayland clients.
* The XwlDataSource class is sealed as its destructor emits the aboutToBeDestroyed() signal.
* If you decide to unseal it, ensure that the about to be destroyed signal is emitted properly!
class XwlDataSource final : public KWaylandServer::AbstractDataSource
~XwlDataSource() override;
void requestData(const QString &mimeType, qint32 fd) override;
void cancel() override;
QStringList mimeTypes() const override;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment