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

Destroy all remaining windows in a process when it dies.

This commit is contained in:
Andreas Kling 2019-01-30 19:35:38 +01:00
parent 3a4207b863
commit 5c25f0c4db
7 changed files with 30 additions and 6 deletions

View file

@ -107,12 +107,17 @@ void WSWindow::on_message(WSMessage& message)
case WSMessage::WM_SetWindowTitle:
set_title(static_cast<WSSetWindowTitleMessage&>(message).title());
return;
case WSMessage::WM_DestroyWindow:
delete this;
return;
case WSMessage::WindowActivated:
gui_event.type = GUI_Event::Type::WindowActivated;
break;
case WSMessage::WindowDeactivated:
gui_event.type = GUI_Event::Type::WindowDeactivated;
break;
default:
break;
}
if (gui_event.type == GUI_Event::Type::Invalid)