cleanup: use doLater instead of adding idle event handlers (#8624)

This commit is contained in:
Ikalco 2024-12-01 11:14:35 -06:00 committed by GitHub
parent d26439a0fe
commit 6d7544458d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 32 additions and 39 deletions

View file

@ -112,21 +112,20 @@ class CTabletV2Resource {
class CTabletToolV2Resource {
public:
CTabletToolV2Resource(SP<CZwpTabletToolV2> resource_, SP<CTabletTool> tool_, SP<CTabletSeat> seat_);
~CTabletToolV2Resource();
bool good();
void sendData();
void queueFrame();
void sendFrame(bool removeSource = true);
void sendFrame();
bool current = false;
WP<CWLSurfaceResource> lastSurf;
WP<CTabletTool> tool;
WP<CTabletSeat> seat;
wl_event_source* frameSource = nullptr;
bool inert = false; // removed was sent
bool frameQueued = false;
bool inert = false; // removed was sent
private:
SP<CZwpTabletToolV2> resource;