zap stray whitespace

This commit is contained in:
okan 2013-04-05 17:07:25 +00:00
parent c5a76f1d5b
commit 670207f79b
5 changed files with 13 additions and 13 deletions

View File

@ -574,7 +574,7 @@ client_cycle(struct screen_ctx *sc, int flags)
return; return;
if (oldcc == NULL) if (oldcc == NULL)
oldcc = (flags & CWM_RCYCLE ? oldcc = (flags & CWM_RCYCLE ?
TAILQ_LAST(&sc->mruq, cycle_entry_q) : TAILQ_LAST(&sc->mruq, cycle_entry_q) :
TAILQ_FIRST(&sc->mruq)); TAILQ_FIRST(&sc->mruq));
@ -606,7 +606,7 @@ client_cycle(struct screen_ctx *sc, int flags)
} }
void void
client_cycle_leave(struct screen_ctx *sc, struct client_ctx *cc) client_cycle_leave(struct screen_ctx *sc, struct client_ctx *cc)
{ {
sc->cycling = 0; sc->cycling = 0;

View File

@ -142,7 +142,7 @@ group_init(struct screen_ctx *sc)
TAILQ_INIT(&sc->groupq); TAILQ_INIT(&sc->groupq);
sc->group_hideall = 0; sc->group_hideall = 0;
/* /*
* See if any group names have already been set and update the * See if any group names have already been set and update the
* property with ours if they'll have changed. * property with ours if they'll have changed.
*/ */

14
menu.c
View File

@ -59,8 +59,8 @@ struct menu_ctx {
int flags; int flags;
int x; int x;
int y; int y;
void (*match)(struct menu_q *, struct menu_q *, char *); void (*match)(struct menu_q *, struct menu_q *, char *);
void (*print)(struct menu *, int); void (*print)(struct menu *, int);
}; };
static struct menu *menu_handle_key(XEvent *, struct menu_ctx *, static struct menu *menu_handle_key(XEvent *, struct menu_ctx *,
struct menu_q *, struct menu_q *); struct menu_q *, struct menu_q *);
@ -75,7 +75,7 @@ static void menu_draw_entry(struct screen_ctx *, struct menu_ctx *,
static int menu_calc_entry(struct screen_ctx *, struct menu_ctx *, static int menu_calc_entry(struct screen_ctx *, struct menu_ctx *,
int, int); int, int);
static int menu_keycode(XKeyEvent *, enum ctltype *, static int menu_keycode(XKeyEvent *, enum ctltype *,
char *); char *);
void void
menu_init(struct screen_ctx *sc) menu_init(struct screen_ctx *sc)
@ -88,7 +88,7 @@ menu_init(struct screen_ctx *sc)
struct menu * struct menu *
menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt, menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt,
char *initial, int flags, char *initial, int flags,
void (*match)(struct menu_q *, struct menu_q *, char *), void (*match)(struct menu_q *, struct menu_q *, char *),
void (*print)(struct menu *, int)) void (*print)(struct menu *, int))
{ {
@ -217,7 +217,7 @@ menu_complete_path(struct menu_ctx *mc)
menuq_clear(&menuq); menuq_clear(&menuq);
if (path[0] != '\0') if (path[0] != '\0')
snprintf(mr->text, sizeof(mr->text), "%s \"%s\"", snprintf(mr->text, sizeof(mr->text), "%s \"%s\"",
mc->searchstr, path); mc->searchstr, path);
else if (!mr->abort) else if (!mr->abort)
@ -286,7 +286,7 @@ menu_handle_key(XEvent *e, struct menu_ctx *mc, struct menu_q *menuq,
break; break;
case CTL_TAB: case CTL_TAB:
if ((mi = TAILQ_FIRST(resultq)) != NULL) { if ((mi = TAILQ_FIRST(resultq)) != NULL) {
/* /*
* - We are in exec_path menu mode * - We are in exec_path menu mode
* - It is equal to the input * - It is equal to the input
* We got a command, launch the file menu * We got a command, launch the file menu
@ -296,7 +296,7 @@ menu_handle_key(XEvent *e, struct menu_ctx *mc, struct menu_q *menuq,
strlen(mi->text))) == 0) strlen(mi->text))) == 0)
return (menu_complete_path(mc)); return (menu_complete_path(mc));
/* /*
* Put common prefix of the results into searchstr * Put common prefix of the results into searchstr
*/ */
(void)strlcpy(mc->searchstr, (void)strlcpy(mc->searchstr,

View File

@ -189,13 +189,13 @@ search_match_path(struct menu_q *menuq, struct menu_q *resultq, char *search, in
globfree(&g); globfree(&g);
} }
void void
search_match_path_exec(struct menu_q *menuq, struct menu_q *resultq, char *search) search_match_path_exec(struct menu_q *menuq, struct menu_q *resultq, char *search)
{ {
return (search_match_path(menuq, resultq, search, PATH_EXEC)); return (search_match_path(menuq, resultq, search, PATH_EXEC));
} }
void void
search_match_path_any(struct menu_q *menuq, struct menu_q *resultq, char *search) search_match_path_any(struct menu_q *menuq, struct menu_q *resultq, char *search)
{ {
return (search_match_path(menuq, resultq, search, 0)); return (search_match_path(menuq, resultq, search, 0));

View File

@ -203,7 +203,7 @@ xev_handle_propertynotify(XEvent *ee)
break; break;
} }
} else { } else {
TAILQ_FOREACH(sc, &Screenq, entry) TAILQ_FOREACH(sc, &Screenq, entry)
if (sc->rootwin == e->window) if (sc->rootwin == e->window)
goto test; goto test;
return; return;