]> git.sur5r.net Git - i3/i3/blobdiff - src/match.c
Merge branch 'next'
[i3/i3] / src / match.c
index 1014de848d358bb6a0e089cc76515331334774e0..350a2c11d0e115091e01ab7af96a31af55e29ebd 100644 (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;
         }