output: refuse to create session lock surfaces with size 0x0

This commit is contained in:
Maximilian Seidler 2025-04-04 09:43:07 +02:00
parent 0b1f2a97ef
commit 6d2d4133e9

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());
}