From 871da48b5624455b08bdc5f02a7a94372feca6c6 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 28 Nov 2010 17:20:16 +0100 Subject: [PATCH] Bugfix: Only set to_focus when focused is actually 1 --- src/load_layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load_layout.c b/src/load_layout.c index b46485f9..554d02e5 100644 --- a/src/load_layout.c +++ b/src/load_layout.c @@ -95,7 +95,7 @@ static int json_int(void *ctx, long val) { if (strcasecmp(last_key, "fullscreen_mode") == 0) { json_node->fullscreen_mode = val; } - if (strcasecmp(last_key, "focused") == 0) { + if (strcasecmp(last_key, "focused") == 0 && val == 1) { to_focus = json_node; }