]> git.sur5r.net Git - i3/i3/commit
Match on all criteria even if con_id or con_mark are given. 2113/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Tue, 15 Dec 2015 12:38:56 +0000 (07:38 -0500)
committerIngo Bürk <ingo.buerk@tngtech.com>
Thu, 17 Dec 2015 13:56:05 +0000 (08:56 -0500)
commitbba18453af27ea00d0fedcbbd05f77d327d8bd89
tree0a228a058778d83adc4419466e432a93d4c5346e
parent8e081d7fff1884dfc8d17e841848560a6f959798
Match on all criteria even if con_id or con_mark are given.

Previously, if a match specification contained the con_id or con_mark criterion,
all other criteria were ignored. However, a user may want to specify one of
those two unique identifiers and still specify others as well, for example to
match the currently focused window, but only if it has a certain WM_CLASS:

    [con_id=__focused__ class=special] kill

We now check all specified criteria.

fixes #2111
src/commands.c
src/match.c
testcases/t/261-match-con_id-con_mark-combinations.t [new file with mode: 0644]