screencopy: don't spam sw cursor locks

This commit is contained in:
Vaxry 2024-05-11 22:10:42 +01:00
parent 494b9415a1
commit 8562d38477
2 changed files with 28 additions and 7 deletions

View file

@ -7,6 +7,7 @@
#include <vector>
#include "../managers/HookSystemManager.hpp"
#include "../helpers/Timer.hpp"
#include "../managers/eventLoop/EventLoopTimer.hpp"
class CMonitor;
@ -84,6 +85,9 @@ class CScreencopyProtocolManager {
std::list<SScreencopyFrame> m_lFrames;
std::list<CScreencopyClient> m_lClients;
SP<CEventLoopTimer> m_pSoftwareCursorTimer;
bool m_bTimerArmed = false;
wl_listener m_liDisplayDestroy;
std::vector<SScreencopyFrame*> m_vFramesAwaitingWrite;