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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user