i3/window: Port window names to i3String

This commit is contained in:
Quentin Glidic
2012-08-07 21:23:06 +02:00
parent bc5f33878a
commit b6c705a1a4
6 changed files with 19 additions and 57 deletions

View File

@ -113,9 +113,9 @@ bool match_matches_window(Match *match, i3Window *window) {
}
if (match->title != NULL) {
if (window->name_json != NULL &&
regex_matches(match->title, window->name_json)) {
LOG("title matches (%s)\n", window->name_json);
if (window->name != NULL &&
regex_matches(match->title, i3string_as_utf8(window->name))) {
LOG("title matches (%s)\n", i3string_as_utf8(window->name));
} else {
return false;
}