diff options
| author | Nihal Jere <nihal@nihaljere.xyz> | 2025-08-15 14:38:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-15 15:38:28 +0100 |
| commit | aaedce596ec27742ea8f00a20607913e8a3e83db (patch) | |
| tree | 1d464e90b678083b18c3a31a5ebccd3e89a87d56 /src/managers/SeatManager.cpp | |
| parent | 60d769a89908c29e19100059985db15a7b6bab6a (diff) | |
protocols: implement ext-data-control (#11323)
This protocol has superseded wlr-data-control
Diffstat (limited to 'src/managers/SeatManager.cpp')
| -rw-r--r-- | src/managers/SeatManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/managers/SeatManager.cpp b/src/managers/SeatManager.cpp index 67752e2a..bc4f2dfc 100644 --- a/src/managers/SeatManager.cpp +++ b/src/managers/SeatManager.cpp @@ -2,6 +2,7 @@ #include "../protocols/core/Seat.hpp" #include "../protocols/core/DataDevice.hpp" #include "../protocols/DataDeviceWlr.hpp" +#include "../protocols/ExtDataDevice.hpp" #include "../protocols/PrimarySelection.hpp" #include "../protocols/core/Compositor.hpp" #include "../Compositor.hpp" @@ -578,6 +579,7 @@ void CSeatManager::setCurrentSelection(SP<IDataSource> source) { m_selection.destroySelection = source->m_events.destroy.listen([this] { setCurrentSelection(nullptr); }); PROTO::data->setSelection(source); PROTO::dataWlr->setSelection(source, false); + PROTO::extDataDevice->setSelection(source, false); } m_events.setSelection.emit(); @@ -603,6 +605,7 @@ void CSeatManager::setCurrentPrimarySelection(SP<IDataSource> source) { m_selection.destroyPrimarySelection = source->m_events.destroy.listen([this] { setCurrentPrimarySelection(nullptr); }); PROTO::primarySelection->setSelection(source); PROTO::dataWlr->setSelection(source, true); + PROTO::extDataDevice->setSelection(source, true); } m_events.setPrimarySelection.emit(); |
