summaryrefslogtreecommitdiff
path: root/src/protocols/IdleInhibit.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-04-24 19:15:01 +0100
committerVaxry <vaxry@vaxry.net>2024-04-24 19:15:01 +0100
commitd86eec332fb3843d24b1f79ecc36f792b5d04773 (patch)
tree673cebef7af59a1118cd1b4be688e732d4fbf390 /src/protocols/IdleInhibit.hpp
parent4540d8ccd51e485485af364a951ea7df240585be (diff)
idle-inhibit: don't destroy inhibitor on surface destroy
fixes #5731
Diffstat (limited to 'src/protocols/IdleInhibit.hpp')
-rw-r--r--src/protocols/IdleInhibit.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/protocols/IdleInhibit.hpp b/src/protocols/IdleInhibit.hpp
index 3ea8f691..b59e8789 100644
--- a/src/protocols/IdleInhibit.hpp
+++ b/src/protocols/IdleInhibit.hpp
@@ -33,7 +33,8 @@ class CIdleInhibitorResource {
private:
SP<CZwpIdleInhibitorV1> resource;
- wlr_surface* surface = nullptr;
+ wlr_surface* surface = nullptr;
+ bool destroySent = false;
DYNLISTENER(surfaceDestroy);
};