diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-24 19:15:01 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-24 19:15:01 +0100 |
| commit | d86eec332fb3843d24b1f79ecc36f792b5d04773 (patch) | |
| tree | 673cebef7af59a1118cd1b4be688e732d4fbf390 /src/protocols/IdleInhibit.hpp | |
| parent | 4540d8ccd51e485485af364a951ea7df240585be (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.hpp | 3 |
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); }; |
