From: Michael Stapelberg Date: Sun, 28 Nov 2010 16:20:16 +0000 (+0100) Subject: Bugfix: Only set to_focus when focused is actually 1 X-Git-Tag: tree-pr1~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=871da48b5624455b08bdc5f02a7a94372feca6c6;p=i3%2Fi3 Bugfix: Only set to_focus when focused is actually 1 --- 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; }