mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
WindowServer: Add sanity checks to create_window
IPC
This commit is contained in:
parent
ef92493aba
commit
0ff09d4f74
Notes:
sideshowbarker
2024-07-18 16:58:22 +09:00
Author: https://github.com/matthewbjones
Commit: 0ff09d4f74
Pull-request: https://github.com/SerenityOS/serenity/pull/7721
Issue: https://github.com/SerenityOS/serenity/issues/4540
3 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue