]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Only set to_focus when focused is actually 1
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 28 Nov 2010 16:20:16 +0000 (17:20 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 28 Nov 2010 16:20:16 +0000 (17:20 +0100)
src/load_layout.c

index b46485f951dc2427a7928bc8ff037582245289c4..554d02e541840399b8db4f1e2d381f48b839760f 100644 (file)
@@ -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;
     }