diff options
author | Ikalco <[email protected]> | 2024-10-07 19:23:48 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-10-08 01:23:48 +0100 |
commit | 0d70c442538ba0d1efc63558c859c184367c95ad (patch) | |
tree | 40d2716125df08246cd6fc4283d19680868bfc17 /src/protocols/Screencopy.hpp | |
parent | a364df4c9e9a73f0460665463028539e3abe4a8b (diff) | |
download | Hyprland-0d70c442538ba0d1efc63558c859c184367c95ad.tar.gz Hyprland-0d70c442538ba0d1efc63558c859c184367c95ad.zip |
screencopy: fix screencopy frames not being cleaned up (#8017)
---------
Co-authored-by: Vaxry <[email protected]>
Diffstat (limited to 'src/protocols/Screencopy.hpp')
-rw-r--r-- | src/protocols/Screencopy.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/Screencopy.hpp b/src/protocols/Screencopy.hpp index cbc56edb..e121d0fd 100644 --- a/src/protocols/Screencopy.hpp +++ b/src/protocols/Screencopy.hpp @@ -54,7 +54,7 @@ class CScreencopyFrame { bool good(); - SP<CScreencopyFrame> self; + WP<CScreencopyFrame> self; WP<CScreencopyClient> client; private: @@ -92,7 +92,7 @@ class CScreencopyProtocol : public IWaylandProtocol { private: std::vector<SP<CScreencopyFrame>> m_vFrames; - std::vector<SP<CScreencopyFrame>> m_vFramesAwaitingWrite; + std::vector<WP<CScreencopyFrame>> m_vFramesAwaitingWrite; std::vector<SP<CScreencopyClient>> m_vClients; SP<CEventLoopTimer> m_pSoftwareCursorTimer; |