diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-05-13 21:47:59 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-05-14 23:13:35 +0100 |
| commit | 94c20a186372aace78b188842848b873eb3ebbd7 (patch) | |
| tree | b7bc6aa3de054c2234d0db0836d720717b7354d6 /src/protocols/DataDeviceWlr.hpp | |
| parent | 3eeaea5be9324121678774761c0226fe98bf7e5b (diff) | |
primary-selection: move to hyprland impl
Diffstat (limited to 'src/protocols/DataDeviceWlr.hpp')
| -rw-r--r-- | src/protocols/DataDeviceWlr.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/protocols/DataDeviceWlr.hpp b/src/protocols/DataDeviceWlr.hpp index 0b703347..193e918c 100644 --- a/src/protocols/DataDeviceWlr.hpp +++ b/src/protocols/DataDeviceWlr.hpp @@ -19,7 +19,8 @@ class CWLRDataOffer { bool good(); void sendData(); - bool dead = false; + bool dead = false; + bool primary = false; WP<IDataSource> source; @@ -61,6 +62,7 @@ class CWLRDataDevice { void sendDataOffer(SP<CWLRDataOffer> offer); void sendSelection(SP<CWLRDataOffer> selection); + void sendPrimarySelection(SP<CWLRDataOffer> selection); WP<CWLRDataDevice> self; @@ -103,8 +105,8 @@ class CDataDeviceWLRProtocol : public IWaylandProtocol { std::vector<SP<CWLRDataOffer>> m_vOffers; // - void setSelection(SP<IDataSource> source); - void sendSelectionToDevice(SP<CWLRDataDevice> dev, SP<IDataSource> sel); + void setSelection(SP<IDataSource> source, bool primary); + void sendSelectionToDevice(SP<CWLRDataDevice> dev, SP<IDataSource> sel, bool primary); // SP<CWLRDataDevice> dataDeviceForClient(wl_client*); |
