]> git.sur5r.net Git - i3/i3/blobdiff - src/match.c
Time Lord technology: for_window config directive to run arbitrary cmds
[i3/i3] / src / match.c
index 9ed4d434f14e7c1e86983401531d3f2db8f39068..fd024d59e3ffbdb0937d05df1c75cb9bef8035af 100644 (file)
@@ -66,6 +66,12 @@ bool match_matches_window(Match *match, i3Window *window) {
         return true;
     }
 
+    /* TODO: pcre match */
+    if (match->title != NULL && window->name_json != NULL && strcasecmp(match->title, window->name_json) == 0) {
+        LOG("match made by title (%s)\n", window->name_json);
+        return true;
+    }
+
     LOG("match->dock = %d, window->dock = %d\n", match->dock, window->dock);
     if (match->dock != -1 &&
         ((window->dock == W_DOCK_TOP && match->dock == M_DOCK_TOP) ||