mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-05-12 21:30:37 +01:00
output: refuse to create session lock surfaces with size 0x0 (#729)
This commit is contained in:
parent
dd4c1d5034
commit
854235e1c8
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue