Introduce special value __focused__ for criterion con_id.
This allows matching with [con_id=__focused__] unmark for commands that do not default to operating on the focused window if no criteria have been specified (such as unmark). relates to #2014
This commit is contained in:
@ -279,6 +279,11 @@ void match_parse_property(Match *match, const char *ctype, const char *cvalue) {
|
||||
}
|
||||
|
||||
if (strcmp(ctype, "con_id") == 0) {
|
||||
if (strcmp(cvalue, "__focused__") == 0) {
|
||||
match->con_id = focused;
|
||||
return;
|
||||
}
|
||||
|
||||
char *end;
|
||||
long parsed = strtol(cvalue, &end, 10);
|
||||
if (parsed == LONG_MIN ||
|
||||
|
Reference in New Issue
Block a user