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
commit fd7163b125
Notes: sideshowbarker 2024-07-17 22:07:10 +09:00

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