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

Snake+Minesweeper: Exit process when game window is closed.

This commit is contained in:
Andreas Kling 2019-04-21 04:11:29 +02:00
parent 57da00b731
commit b3f7f5436a
2 changed files with 2 additions and 0 deletions

View file

@ -13,6 +13,7 @@ int main(int argc, char** argv)
GApplication app(argc, argv);
auto* window = new GWindow;
window->set_should_exit_event_loop_on_close(true);
window->set_resizable(false);
window->set_title("Minesweeper");
window->set_rect(100, 100, 139, 175);