From d86eec332fb3843d24b1f79ecc36f792b5d04773 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 24 Apr 2024 19:15:01 +0100 Subject: idle-inhibit: don't destroy inhibitor on surface destroy fixes #5731 --- src/protocols/IdleInhibit.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/protocols/IdleInhibit.hpp') 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 resource; - wlr_surface* surface = nullptr; + wlr_surface* surface = nullptr; + bool destroySent = false; DYNLISTENER(surfaceDestroy); }; -- cgit v1.2.3