idle-inhibit: don't destroy inhibitor on surface destroy

fixes #5731
This commit is contained in:
Vaxry 2024-04-24 19:15:01 +01:00
parent 4540d8ccd5
commit d86eec332f
2 changed files with 12 additions and 3 deletions

View file

@ -33,7 +33,8 @@ class CIdleInhibitorResource {
private:
SP<CZwpIdleInhibitorV1> resource;
wlr_surface* surface = nullptr;
wlr_surface* surface = nullptr;
bool destroySent = false;
DYNLISTENER(surfaceDestroy);
};