diff options
author | Maximilian Seidler <[email protected]> | 2024-08-15 16:08:54 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-15 17:08:54 +0100 |
commit | 520e91238f0e6e6990e6a0845d73d85012485525 (patch) | |
tree | 4598ea0f10a2f5a60c7aa5381a0e9d7c3611d1bd /src | |
parent | 0c56be74a310e137f577a2b71fc2c72a8100eada (diff) | |
download | Hyprland-520e91238f0e6e6990e6a0845d73d85012485525.tar.gz Hyprland-520e91238f0e6e6990e6a0845d73d85012485525.zip |
gamma-control: fix crash on monitor disconnect (#7353)
Diffstat (limited to 'src')
-rw-r--r-- | src/protocols/GammaControl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/GammaControl.cpp b/src/protocols/GammaControl.cpp index 494d9862..4febffbb 100644 --- a/src/protocols/GammaControl.cpp +++ b/src/protocols/GammaControl.cpp @@ -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 |