cleanup: use doLater instead of adding idle event handlers (#8624)
This commit is contained in:
parent
d26439a0fe
commit
6d7544458d
5 changed files with 32 additions and 39 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue