mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
spacing nits
This commit is contained in:
parent
2440efad06
commit
917bce4b8d
9
group.c
9
group.c
@ -179,19 +179,19 @@ group_init(struct screen_ctx *sc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
group_make_autogroup(struct conf *conf, char *class, int no)
|
group_make_autogroup(struct conf *conf, char *val, int no)
|
||||||
{
|
{
|
||||||
struct autogroupwin *aw;
|
struct autogroupwin *aw;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
aw = xcalloc(1, sizeof(*aw));
|
aw = xcalloc(1, sizeof(*aw));
|
||||||
|
|
||||||
if ((p = strchr(class, ',')) == NULL) {
|
if ((p = strchr(val, ',')) == NULL) {
|
||||||
aw->name = NULL;
|
aw->name = NULL;
|
||||||
aw->class = xstrdup(class);
|
aw->class = xstrdup(val);
|
||||||
} else {
|
} else {
|
||||||
*(p++) = '\0';
|
*(p++) = '\0';
|
||||||
aw->name = xstrdup(class);
|
aw->name = xstrdup(val);
|
||||||
aw->class = xstrdup(p);
|
aw->class = xstrdup(p);
|
||||||
}
|
}
|
||||||
aw->num = no;
|
aw->num = no;
|
||||||
@ -426,6 +426,7 @@ group_autogroup(struct client_ctx *cc)
|
|||||||
|
|
||||||
if (cc->app_class == NULL || cc->app_name == NULL)
|
if (cc->app_class == NULL || cc->app_name == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (xu_getprop(cc->win, _NET_WM_DESKTOP, XA_CARDINAL,
|
if (xu_getprop(cc->win, _NET_WM_DESKTOP, XA_CARDINAL,
|
||||||
1, (unsigned char **)&grpno) > 0) {
|
1, (unsigned char **)&grpno) > 0) {
|
||||||
if (*grpno == 0xffffffff)
|
if (*grpno == 0xffffffff)
|
||||||
|
11
search.c
11
search.c
@ -78,11 +78,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/* Then if there is a match on the window class name. */
|
||||||
* See if there is a match on the window class
|
|
||||||
* name.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (tier < 0 && strsubmatch(search, cc->app_class, 0)) {
|
if (tier < 0 && strsubmatch(search, cc->app_class, 0)) {
|
||||||
cc->matchname = cc->app_class;
|
cc->matchname = cc->app_class;
|
||||||
tier = 3;
|
tier = 3;
|
||||||
@ -99,9 +95,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
|
|||||||
if (cc == client_current() && tier < ntiers - 1)
|
if (cc == client_current() && tier < ntiers - 1)
|
||||||
tier++;
|
tier++;
|
||||||
|
|
||||||
/*
|
/* Clients that are hidden get ranked one up. */
|
||||||
* Clients that are hidden get ranked one up.
|
|
||||||
*/
|
|
||||||
if (cc->flags & CLIENT_HIDDEN && tier > 0)
|
if (cc->flags & CLIENT_HIDDEN && tier > 0)
|
||||||
tier--;
|
tier--;
|
||||||
|
|
||||||
@ -114,7 +108,6 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
|
|||||||
* Always make your current tierp the newly inserted
|
* Always make your current tierp the newly inserted
|
||||||
* entry.
|
* entry.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for (t = tier; t >= 0 && ((before = tierp[t]) == NULL); t--)
|
for (t = tier; t >= 0 && ((before = tierp[t]) == NULL); t--)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user