mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 05:10:20 +01:00
protocols/gamma: fix GammaControl destroy conditions
This commit is contained in:
parent
70a7047ee1
commit
88259cb794
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ void CGammaControlProtocol::onManagerResourceDestroy(wl_resource* res) {
|
|||
}
|
||||
|
||||
void CGammaControlProtocol::destroyGammaControl(CGammaControl* gamma) {
|
||||
std::erase_if(m_gammaControllers, [&](const auto& other) { return other.get() == gamma; });
|
||||
std::erase_if(m_gammaControllers, [&](const auto& other) { return other->getMonitor() == gamma->getMonitor(); });
|
||||
}
|
||||
|
||||
void CGammaControlProtocol::onGetGammaControl(CZwlrGammaControlManagerV1* pMgr, uint32_t id, wl_resource* output) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue