mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-14 15:28:22 +00:00
HookSystem: improve callback safety
This commit is contained in:
@@ -270,9 +270,9 @@ struct STabletPad {
|
||||
};
|
||||
|
||||
struct SIdleInhibitor {
|
||||
wlr_idle_inhibitor_v1* pWlrInhibitor = nullptr;
|
||||
CWindow* pWindow = nullptr;
|
||||
HOOK_CALLBACK_FN* onWindowDestroy = nullptr;
|
||||
wlr_idle_inhibitor_v1* pWlrInhibitor = nullptr;
|
||||
CWindow* pWindow = nullptr;
|
||||
std::shared_ptr<HOOK_CALLBACK_FN> onWindowDestroy;
|
||||
|
||||
DYNLISTENER(Destroy);
|
||||
|
||||
|
Reference in New Issue
Block a user