summaryrefslogtreecommitdiff
path: root/Games/Snake
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-21 04:11:29 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-21 04:11:29 +0200
commitb3f7f5436a2b3e67bfeb1d36cb62c188b83cf792 (patch)
tree6170fe125d3df923b011273a583915865f73f074 /Games/Snake
parent57da00b731fd060c051bb5cdff5cdf507ece81bb (diff)
downloadserenity-b3f7f5436a2b3e67bfeb1d36cb62c188b83cf792.zip
Snake+Minesweeper: Exit process when game window is closed.
Diffstat (limited to 'Games/Snake')
-rw-r--r--Games/Snake/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Games/Snake/main.cpp b/Games/Snake/main.cpp
index 59ffc6b413..34dee293b7 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);