monitor: unplug all callbacks in ~dtor

This commit is contained in:
vaxerski 2023-07-18 15:36:27 +02:00
parent 8370a7fcc4
commit 0ba28a46fd

View file

@ -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) {