summaryrefslogtreecommitdiff
path: root/src/protocols/Tablet.hpp
diff options
context:
space:
mode:
authorIkalco <73481042+ikalco@users.noreply.github.com>2024-12-01 11:14:35 -0600
committerGitHub <noreply@github.com>2024-12-01 17:14:35 +0000
commit6d7544458d0fafcae410c1978a0cabce2fb4a346 (patch)
tree77bac5cd967326e3f643cbb91fc7e7ae910d401c /src/protocols/Tablet.hpp
parentd26439a0fe5594fb26d5a3c01571f9490a9a2d2c (diff)
cleanup: use doLater instead of adding idle event handlers (#8624)
Diffstat (limited to 'src/protocols/Tablet.hpp')
-rw-r--r--src/protocols/Tablet.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/protocols/Tablet.hpp b/src/protocols/Tablet.hpp
index 1ebcb1e5..8c99bee0 100644
--- a/src/protocols/Tablet.hpp
+++ b/src/protocols/Tablet.hpp
@@ -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;