From 9aa313402b1be3df2925076bb1292d03e68bb47f Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 11 Dec 2025 00:50:45 +0000 Subject: protocols/datadevice: avoid double leave ref https://github.com/hyprwm/Hyprland/discussions/12494 --- src/protocols/core/DataDevice.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/protocols/core/DataDevice.hpp') 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 m_self; private: - SP m_resource; - wl_client* m_client = nullptr; + SP m_resource; + wl_client* m_client = nullptr; + + WP m_entered; friend class CWLDataDeviceProtocol; }; -- cgit v1.2.3