output: refuse to create session lock surfaces with size 0x0 (#729)

This commit is contained in:
Maximilian Seidler 2025-04-07 11:15:41 +02:00 committed by GitHub
parent dd4c1d5034
commit 854235e1c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,6 +56,11 @@ void COutput::createSessionLockSurface() {
return;
}
if (size == Vector2D{0, 0}) {
Debug::log(WARN, "output {} refusing to create a lock surface with size 0x0", m_ID);
return;
}
m_sessionLockSurface = makeUnique<CSessionLockSurface>(m_self.lock());
}