X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcfgparse.y;h=86e9ea98ea58371f85dc3e6a00bc5f1b62f7ab76;hb=717ae819c55d2aca9f4bf2e1198e035ca64114ac;hp=572fe6d25cfb52420e3e84cfe8c239521ffe6782;hpb=a41bfba47a1969cb55c7502a91fc4518cc13a506;p=i3%2Fi3 diff --git a/src/cfgparse.y b/src/cfgparse.y index 572fe6d2..86e9ea98 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -729,6 +729,10 @@ bindsym: for_window: TOK_FOR_WINDOW match command { + if (match_is_empty(¤t_match)) { + ELOG("Match is empty, ignoring this for_window statement\n"); + break; + } printf("\t should execute command %s for the criteria mentioned above\n", $3); Assignment *assignment = scalloc(sizeof(Assignment)); assignment->type = A_COMMAND;