mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 04:05:58 +01:00
gammactrl: fix potential crash on monitor removed (#7828)
This commit is contained in:
parent
581f6659f8
commit
3c9716acfd
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ CGammaControl::CGammaControl(SP<CZwlrGammaControlV1> resource_, wl_resource* out
|
|||
|
||||
pMonitor = OUTPUTRES->monitor;
|
||||
|
||||
if (!pMonitor) {
|
||||
if (!pMonitor || !pMonitor->output) {
|
||||
LOGM(ERR, "No CMonitor");
|
||||
resource->sendFailed();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue