diff --git a/Games/Minesweeper/main.cpp b/Games/Minesweeper/main.cpp index 2c4ae20e3a1..d1771b70ad5 100644 --- a/Games/Minesweeper/main.cpp +++ b/Games/Minesweeper/main.cpp @@ -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); diff --git a/Games/Snake/main.cpp b/Games/Snake/main.cpp index 59ffc6b4139..34dee293b79 100644 --- a/Games/Snake/main.cpp +++ b/Games/Snake/main.cpp @@ -12,6 +12,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_double_buffering_enabled(false); window->set_title("Snake"); window->set_rect(100, 100, 320, 320);