]> git.sur5r.net Git - i3/i3/commit
Reject invalid match criteria with an error. 2103/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Wed, 9 Dec 2015 12:39:08 +0000 (13:39 +0100)
committerIngo Bürk <ingo.buerk@tngtech.com>
Wed, 9 Dec 2015 13:00:53 +0000 (14:00 +0100)
commit8d36f78b8e85f2a292c24411a481dc0a02c7498d
tree424989ff0a8e49ae9c04c0bd6fa4a637dddc48c9
parent04be42f7cd2febf92939cb6eddf3527397ae4dc3
Reject invalid match criteria with an error.

Previously, using a command like

  [con_id=foo] kill

would kill the currently focused window because while an error for
not being able to parse the con_id was logged, no further action
was taken, which caused the criterion to be ignored. In this case,
the fallback behavior of using the focused window took over.

For con_id, id and window_type we now reject incorrect values with
an error and abort the command.

fixes #2091
include/data.h
src/commands.c
src/match.c
testcases/t/260-invalid-criteria.t [new file with mode: 0644]