mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 03:05:58 +01:00
monitor: unplug all callbacks in ~dtor
This commit is contained in:
parent
8370a7fcc4
commit
0ba28a46fd
1 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,14 @@ CMonitor::CMonitor() {
|
||||||
CMonitor::~CMonitor() {
|
CMonitor::~CMonitor() {
|
||||||
wlr_damage_ring_finish(&damage);
|
wlr_damage_ring_finish(&damage);
|
||||||
pixman_region32_fini(&lastFrameDamage);
|
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) {
|
void CMonitor::onConnect(bool noRule) {
|
||||||
|
|
Loading…
Reference in a new issue