mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
style and spacing nits
This commit is contained in:
parent
8515d717ae
commit
6b8b856217
3
menu.c
3
menu.c
@ -184,6 +184,7 @@ out:
|
||||
static struct menu *
|
||||
menu_complete_path(struct menu_ctx *mc)
|
||||
{
|
||||
struct screen_ctx *sc = mc->sc;
|
||||
struct menu *mi, *mr;
|
||||
struct menu_q menuq;
|
||||
|
||||
@ -191,7 +192,7 @@ menu_complete_path(struct menu_ctx *mc)
|
||||
|
||||
TAILQ_INIT(&menuq);
|
||||
|
||||
if ((mi = menu_filter(mc->sc, &menuq, mc->searchstr, NULL,
|
||||
if ((mi = menu_filter(sc, &menuq, mc->searchstr, NULL,
|
||||
CWM_MENU_DUMMY, search_match_path_any, NULL)) != NULL) {
|
||||
mr->abort = mi->abort;
|
||||
mr->dummy = mi->dummy;
|
||||
|
10
search.c
10
search.c
@ -42,10 +42,6 @@ static void search_match_path_exec(struct menu_q *, struct menu_q *,
|
||||
char *);
|
||||
static int strsubmatch(char *, char *, int);
|
||||
|
||||
/*
|
||||
* Match: label, title, class.
|
||||
*/
|
||||
|
||||
void
|
||||
search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
|
||||
{
|
||||
@ -66,7 +62,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
|
||||
|
||||
TAILQ_FOREACH(mi, menuq, entry) {
|
||||
int tier = -1, t;
|
||||
struct client_ctx *cc = mi->ctx;
|
||||
struct client_ctx *cc = (struct client_ctx *)mi->ctx;
|
||||
|
||||
/* First, try to match on labels. */
|
||||
if (cc->label != NULL && strsubmatch(search, cc->label, 0)) {
|
||||
@ -130,11 +126,9 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
|
||||
void
|
||||
search_print_client(struct menu *mi, int list)
|
||||
{
|
||||
struct client_ctx *cc;
|
||||
struct client_ctx *cc = (struct client_ctx *)mi->ctx;
|
||||
char flag = ' ';
|
||||
|
||||
cc = mi->ctx;
|
||||
|
||||
if (cc == client_current())
|
||||
flag = '!';
|
||||
else if (cc->flags & CLIENT_HIDDEN)
|
||||
|
Loading…
Reference in New Issue
Block a user