1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:28:11 +00:00

WindowServer: Stop trying to close windows that are already destroyed

This commit is contained in:
Sam Atkins 2021-12-14 16:30:26 +00:00 committed by Andreas Kling
parent a330a070d4
commit fd7163b125

View file

@ -898,6 +898,9 @@ void Window::window_menu_activate_default()
void Window::request_close()
{
if (is_destroyed())
return;
Event close_request(Event::WindowCloseRequest);
event(close_request);
}