Bugfix: Ignore for_window commands with empty (invalid) criteria (+test) (Thanks aksr)
This commit is contained in:
@ -659,6 +659,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;
|
||||
|
Reference in New Issue
Block a user