inhibitor: always destroy on window unmap

ref #5555
This commit is contained in:
Vaxry
2024-04-12 00:17:50 +01:00
parent e0a7cf5c30
commit b1a9430289
2 changed files with 19 additions and 7 deletions

View File

@@ -270,8 +270,9 @@ struct STabletPad {
};
struct SIdleInhibitor {
wlr_idle_inhibitor_v1* pWlrInhibitor = nullptr;
CWindow* pWindow = nullptr;
wlr_idle_inhibitor_v1* pWlrInhibitor = nullptr;
CWindow* pWindow = nullptr;
HOOK_CALLBACK_FN* onWindowDestroy = nullptr;
DYNLISTENER(Destroy);