diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-18 15:36:27 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-07-18 15:36:27 +0200 |
| commit | 0ba28a46fd4b37fff861e3f0bc02c9fd359c4075 (patch) | |
| tree | edbc479c0f9214fb6c7409ed1b897fee40264c67 /src/helpers/Monitor.cpp | |
| parent | 8370a7fcc4627e6f21395cc8b81298369be5cdaf (diff) | |
monitor: unplug all callbacks in ~dtor
Diffstat (limited to 'src/helpers/Monitor.cpp')
| -rw-r--r-- | src/helpers/Monitor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index e8eec951..390bd3c4 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -16,6 +16,14 @@ CMonitor::CMonitor() { CMonitor::~CMonitor() { wlr_damage_ring_finish(&damage); pixman_region32_fini(&lastFrameDamage); + + hyprListener_monitorDestroy.removeCallback(); + hyprListener_monitorFrame.removeCallback(); + hyprListener_monitorStateRequest.removeCallback(); + hyprListener_monitorDamage.removeCallback(); + hyprListener_monitorNeedsFrame.removeCallback(); + hyprListener_monitorCommit.removeCallback(); + hyprListener_monitorBind.removeCallback(); } void CMonitor::onConnect(bool noRule) { |
