mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 15:11:57 -07:00
core: fix crash on monitor removed with gammaControl (#7601)
* fix crash on monitor removed with gammaControl * Update GammaControl.cpp
This commit is contained in:
@@ -20,7 +20,7 @@ class CGammaControl {
|
||||
|
||||
private:
|
||||
SP<CZwlrGammaControlV1> resource;
|
||||
CMonitor* pMonitor = nullptr;
|
||||
WP<CMonitor> pMonitor;
|
||||
size_t gammaSize = 0;
|
||||
bool gammaTableSet = false;
|
||||
std::vector<uint16_t> gammaTable; // [r,g,b]+
|
||||
|
Reference in New Issue
Block a user