mirror of
https://github.com/hyprwm/aquamarine.git
synced 2025-12-20 04:40:12 +01:00
cleanup
This commit is contained in:
parent
4fe2d8883b
commit
7ad035d1a7
1 changed files with 3 additions and 5 deletions
|
|
@ -1499,7 +1499,7 @@ void Aquamarine::SDRMConnector::disconnect() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Don't emit destroy here, the `IOutput` destructor will emit it
|
||||
output->events.destroy.emit();
|
||||
output.reset();
|
||||
|
||||
status = DRM_MODE_DISCONNECTED;
|
||||
|
|
@ -1565,10 +1565,8 @@ void Aquamarine::SDRMConnector::onPresent() {
|
|||
}
|
||||
|
||||
Aquamarine::CDRMOutput::~CDRMOutput() {
|
||||
auto backendLock = backend.lock();
|
||||
if (backendLock && backendLock->backend) {
|
||||
backendLock->backend->removeIdleEvent(frameIdle);
|
||||
}
|
||||
if (backend && backend->backend)
|
||||
backend->backend->removeIdleEvent(frameIdle);
|
||||
connector->isPageFlipPending = false;
|
||||
connector->frameEventScheduled = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue