mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
WindowServer: Post error messages to clients on protocol failure.
This commit is contained in:
parent
f33f094483
commit
222a6f7bbc
4 changed files with 53 additions and 17 deletions
|
@ -232,6 +232,14 @@ void GEventLoop::wait_for_event()
|
|||
|
||||
auto unprocessed_events = move(m_unprocessed_messages);
|
||||
for (auto& event : unprocessed_events) {
|
||||
|
||||
if (event.type == GUI_ServerMessage::Error) {
|
||||
dbgprintf("GEventLoop got error message from server\n");
|
||||
dbgprintf(" - error message: %s\n", String(event.text, event.text_length).characters());
|
||||
exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (event.type) {
|
||||
case GUI_ServerMessage::MenuItemActivated:
|
||||
handle_menu_event(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue