diff options
author | Wynn Wolf Arbor | 2020-03-18 19:46:54 +0100 |
---|---|---|
committer | Wolfgang Müller | 2021-04-27 12:28:35 +0200 |
commit | 08ab650ce0d4d699e7e062d439ab6c8858bad65a (patch) | |
tree | 7ed304e0279bebe1544a140d3dc7d51e70fb42f6 /search.c | |
parent | c0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9 (diff) | |
download | cwm-08ab650ce0d4d699e7e062d439ab6c8858bad65a.tar.gz |
Remove matching on window title history
Obscure feature. Confusing if you don't know about it, mostly useless if
you do. Matching on currently visible window titles is enough.
Diffstat (limited to 'search.c')
-rw-r--r-- | search.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -71,7 +71,6 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search) { struct menu *mi, *tierp[3], *before = NULL; struct client_ctx *cc; - struct winname *wn; (void)memset(tierp, 0, sizeof(tierp)); @@ -86,11 +85,8 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search) /* Match on window name history, from present to past. */ if (tier < 0) { - TAILQ_FOREACH_REVERSE(wn, &cc->nameq, name_q, entry) - if (match_substr(search, wn->name, 0)) { - tier = 1; - break; - } + if (match_substr(search, cc->name, 0)) + tier = 1; } /* Match on window resource class. */ |