protocols/datadevice: avoid double leave

ref https://github.com/hyprwm/Hyprland/discussions/12494
This commit is contained in:
Vaxry 2025-12-11 00:50:45 +00:00
parent 1ff801f5f3
commit 9aa313402b
No known key found for this signature in database
GPG key ID: 665806380871D640
2 changed files with 11 additions and 2 deletions

View file

@ -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;
};