ctm: fix crash when finishing ctm progress with a destroyed monitor (#9835)
This commit is contained in:
parent
b496e2c718
commit
5e8bb71785
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,8 @@ void CHyprlandCTMControlProtocol::setCTM(PHLMONITOR monitor, const Mat3x3& ctm)
|
|||
|
||||
data->progress->setCallbackOnEnd([monitor = PHLMONITORREF{monitor}, this](auto) {
|
||||
if (!monitor || !m_mCTMDatas.contains(monitor)) {
|
||||
monitor->setCTM(Mat3x3::identity());
|
||||
if (monitor)
|
||||
monitor->setCTM(Mat3x3::identity());
|
||||
return;
|
||||
}
|
||||
auto& data = m_mCTMDatas.at(monitor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue