diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-12-11 00:50:45 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-12-11 00:50:45 +0000 |
| commit | 9aa313402b1be3df2925076bb1292d03e68bb47f (patch) | |
| tree | bfe2727bff5735458534f415c32e753e71c37f44 /src/protocols/core/DataDevice.hpp | |
| parent | 1ff801f5f32c2d905aee9ce3845e7c350479e53b (diff) | |
protocols/datadevice: avoid double leave
ref https://github.com/hyprwm/Hyprland/discussions/12494
Diffstat (limited to 'src/protocols/core/DataDevice.hpp')
| -rw-r--r-- | src/protocols/core/DataDevice.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/protocols/core/DataDevice.hpp b/src/protocols/core/DataDevice.hpp index 8b52933e..b4ad378f 100644 --- a/src/protocols/core/DataDevice.hpp +++ b/src/protocols/core/DataDevice.hpp @@ -111,8 +111,10 @@ class CWLDataDeviceResource : public IDataDevice { WP<CWLDataDeviceResource> m_self; private: - SP<CWlDataDevice> m_resource; - wl_client* m_client = nullptr; + SP<CWlDataDevice> m_resource; + wl_client* m_client = nullptr; + + WP<CWLSurfaceResource> m_entered; friend class CWLDataDeviceProtocol; }; |
