mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 16:25:59 +01:00
gamma-control: fix crash on monitor disconnect (#7353)
This commit is contained in:
parent
0c56be74a3
commit
520e91238f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue