1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:17:44 +00:00

Handle WindowCloseRequest in FontEditor and /bin/guitest.

This commit is contained in:
Andreas Kling 2019-02-05 12:07:06 +01:00
parent 0a183df655
commit 3accdb0e93
2 changed files with 2 additions and 0 deletions

View file

@ -66,6 +66,7 @@ int main(int argc, char** argv)
case GUI_Event::Type::MouseMove: dbgprintf("WID=%x MouseMove %d,%d\n", event.window_id, event.mouse.position.x, event.mouse.position.y); break;
case GUI_Event::Type::WindowActivated: dbgprintf("WID=%x WindowActivated\n", event.window_id); break;
case GUI_Event::Type::WindowDeactivated: dbgprintf("WID=%x WindowDeactivated\n", event.window_id); break;
case GUI_Event::Type::WindowCloseRequest: return 0;
}
if (event.type == GUI_Event::Type::Paint) {