added support for wlr_idle_inhibitor_v1

This commit is contained in:
vaxerski
2022-07-06 15:42:37 +02:00
parent 5a22335b8d
commit 9655d0c138
8 changed files with 83 additions and 0 deletions

View File

@@ -221,3 +221,14 @@ struct STabletPad {
return wlrTabletPadV2 == b.wlrTabletPadV2;
}
};
struct SIdleInhibitor {
wlr_idle_inhibitor_v1* pWlrInhibitor = nullptr;
CWindow* pWindow = nullptr;
DYNLISTENER(Destroy);
bool operator==(const SIdleInhibitor& b) {
return pWlrInhibitor == b.pWlrInhibitor;
}
};