Bugfix: Only set to_focus when focused is actually 1

next
Michael Stapelberg 2010-11-28 17:20:16 +01:00
parent 511cbec49b
commit 871da48b56
1 changed files with 1 additions and 1 deletions

View 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;
}