diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-12-14 16:30:26 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-12-27 21:27:16 +0100 |
commit | fd7163b1255526e49a33f6bcb92c0243a5e7cdbd (patch) | |
tree | 06992b16c7d1610c1c2a24b8fcfb6ba63482a9c3 /Userland/Services | |
parent | a330a070d4a6981c733375a0f0ec306320a1d086 (diff) | |
download | serenity-fd7163b1255526e49a33f6bcb92c0243a5e7cdbd.zip |
WindowServer: Stop trying to close windows that are already destroyed
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WindowServer/Window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp index 722e11495c..d0eaa7a603 100644 --- a/Userland/Services/WindowServer/Window.cpp +++ b/Userland/Services/WindowServer/Window.cpp @@ -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); } |