mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 04:01:56 -07:00
gamma-control: fix crash on monitor disconnect (#7353)
This commit is contained in:
committed by
GitHub
parent
0c56be74a3
commit
520e91238f
@@ -109,7 +109,7 @@ CGammaControl::CGammaControl(SP<CZwlrGammaControlV1> resource_, wl_resource* out
|
||||
}
|
||||
|
||||
CGammaControl::~CGammaControl() {
|
||||
if (!gammaTableSet || !pMonitor)
|
||||
if (!gammaTableSet || !pMonitor || !pMonitor->output)
|
||||
return;
|
||||
|
||||
// reset the LUT if the client dies for whatever reason and doesn't unset the gamma
|
||||
|
Reference in New Issue
Block a user