From: Michael Stapelberg Date: Wed, 2 Jun 2010 15:20:32 +0000 (+0200) Subject: parser: implement matching on the window id X-Git-Tag: tree-pr1~190 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c3e88ad9372e5fd74aff8cd4be47c23e426aafc;p=i3%2Fi3 parser: implement matching on the window id --- diff --git a/src/cmdparse.y b/src/cmdparse.y index 51690a59..ab3dd4cc 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -238,6 +238,13 @@ criteria: current_match.con_id = atoi($3); printf("id as int = %d\n", current_match.con_id); } + | TOK_ID '=' STR + { + printf("criteria: window id = %s\n", $3); + /* TODO: correctly parse number */ + current_match.id = atoi($3); + printf("window id as int = %d\n", current_match.id); + } ; operations: