1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 16:02:51 -05:00

gamma: remove display sync on destruction

This commit is contained in:
bbedward
2025-11-22 15:26:05 -05:00
parent 58bf189941
commit 4f32376f22

View File

@@ -635,10 +635,6 @@ func (m *Manager) transitionWorker() {
m.targetTemp = identityTemp m.targetTemp = identityTemp
m.transitionMutex.Unlock() m.transitionMutex.Unlock()
if _, err := m.display.Sync(); err != nil {
log.Warnf("Failed to sync Wayland display after destroying controls: %v", err)
}
log.Info("All gamma controls destroyed") log.Info("All gamma controls destroyed")
}) })
} }
@@ -1292,10 +1288,6 @@ func (m *Manager) SetEnabled(enabled bool) {
m.targetTemp = identityTemp m.targetTemp = identityTemp
m.transitionMutex.Unlock() m.transitionMutex.Unlock()
if _, err := m.display.Sync(); err != nil {
log.Warnf("Failed to sync Wayland display after destroying controls: %v", err)
}
log.Info("All gamma controls destroyed") log.Info("All gamma controls destroyed")
}) })
} else { } else {