diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2010-09-25 20:01:28 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2010-09-25 20:01:28 +0000 |
commit | 82093b1dcf5fd135cb133608ededa5a371fe80d6 (patch) | |
tree | 73980bdddc7410f511b6463ac6d52edfb3cf7b91 /app/cwm | |
parent | a178562686b09400dcd6855949250dcff8a4dc84 (diff) |
spacing nits
Diffstat (limited to 'app/cwm')
-rw-r--r-- | app/cwm/group.c | 3 | ||||
-rw-r--r-- | app/cwm/search.c | 13 |
2 files changed, 5 insertions, 11 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c index 74ae765e4..6fdfe9536 100644 --- a/app/cwm/group.c +++ b/app/cwm/group.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: group.c,v 1.47 2010/09/25 19:58:08 okan Exp $ + * $Id: group.c,v 1.48 2010/09/25 20:01:27 okan Exp $ */ #include <sys/param.h> @@ -426,6 +426,7 @@ group_autogroup(struct client_ctx *cc) if (cc->app_class == NULL || cc->app_name == NULL) return; + if (xu_getprop(cc->win, _NET_WM_DESKTOP, XA_CARDINAL, 1, (unsigned char **)&grpno) > 0) { if (*grpno == 0xffffffff) diff --git a/app/cwm/search.c b/app/cwm/search.c index b2d74e3a9..940e4cd43 100644 --- a/app/cwm/search.c +++ b/app/cwm/search.c @@ -14,7 +14,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: search.c,v 1.20 2009/12/15 04:10:42 okan Exp $ + * $Id: search.c,v 1.21 2010/09/25 20:01:27 okan Exp $ */ #include <sys/param.h> @@ -78,11 +78,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search) } } - /* - * See if there is a match on the window class - * name. - */ - + /* Then if there is a match on the window class name. */ if (tier < 0 && strsubmatch(search, cc->app_class, 0)) { cc->matchname = cc->app_class; 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) tier++; - /* - * Clients that are hidden get ranked one up. - */ + /* Clients that are hidden get ranked one up. */ if (cc->flags & CLIENT_HIDDEN && tier > 0) 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 * entry. */ - for (t = tier; t >= 0 && ((before = tierp[t]) == NULL); t--) ; |