From d39ad48130da1d108eb06432fb6271243d062f30 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 25 Feb 2017 16:30:17 +0000 Subject: [PATCH] Grab mouse pointer by default when starting a mission. --- src/battle/battle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battle/battle.c b/src/battle/battle.c index 0d4035e..701a580 100644 --- a/src/battle/battle.c +++ b/src/battle/battle.c @@ -98,6 +98,8 @@ void initBattle(void) getWidget("quit", "battleLost")->action = quitBattle; selectWidget("ok", "startBattle"); + + SDL_SetWindowGrab(app.window, 1); } static void logic(void)