aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-03-18 19:46:54 +0100
committerWolfgang Müller2021-04-27 12:28:35 +0200
commit08ab650ce0d4d699e7e062d439ab6c8858bad65a (patch)
tree7ed304e0279bebe1544a140d3dc7d51e70fb42f6 /search.c
parentc0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9 (diff)
downloadcwm-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.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/search.c b/search.c
index 7cb6167..3a9e1e7 100644
--- a/search.c
+++ b/search.c
@@ -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. */