aboutsummaryrefslogtreecommitdiff
path: root/gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk.c')
-rw-r--r--gtk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk.c b/gtk.c
index 81aeda1..742c18c 100644
--- a/gtk.c
+++ b/gtk.c
@@ -1011,7 +1011,11 @@ static frontend *new_window(char *game_id, char **error)
fe = snew(frontend);
+ fe->timer_active = FALSE;
+ fe->timer_id = -1;
+
fe->me = midend_new(fe, &thegame);
+
if (game_id) {
*error = midend_game_id(fe->me, game_id);
if (*error) {
@@ -1200,8 +1204,6 @@ static frontend *new_window(char *game_id, char **error)
fe->fonts = NULL;
fe->nfonts = fe->fontsize = 0;
- fe->timer_active = FALSE;
-
fe->paste_data = NULL;
fe->paste_data_len = 0;