1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

WindowServer: Add sanity checks to create_window IPC

This commit is contained in:
Matthew Jones 2021-06-02 21:21:57 -06:00 committed by Andreas Kling
parent ef92493aba
commit 0ff09d4f74
3 changed files with 10 additions and 2 deletions

View file

@ -208,7 +208,8 @@ void Window::nudge_into_desktop(bool force_titlebar_visible)
void Window::set_minimum_size(const Gfx::IntSize& size)
{
VERIFY(!size.is_empty());
if (size.is_null())
return;
if (m_minimum_size == size)
return;