diff options
author | okan <okan> | 2014-08-22 19:04:00 +0000 |
---|---|---|
committer | okan <okan> | 2014-08-22 19:04:00 +0000 |
commit | fe533fdc8edb2584b40a8bad9f00b8258529854f (patch) | |
tree | a25ef79ccd5141c92bc3bc4915885c81f6afc0f3 /search.c | |
parent | b31b09dfc26b4b17c025d7196b8b5a4a26f599df (diff) | |
download | cwm-fe533fdc8edb2584b40a8bad9f00b8258529854f.tar.gz cwm-fe533fdc8edb2584b40a8bad9f00b8258529854f.tar.xz cwm-fe533fdc8edb2584b40a8bad9f00b8258529854f.zip |
Fix nogroup regression, where nogroup became an actual group - the
symantics between cwm groups and ewmh got in the way. Ensure a client that wants to be in nogroup stays in nogroup (thus stays in view), even when (re)reading NET_WM_DESKTOP. Paritially reverts patchset 644 (2014-02-07 13:09 PST) which deals with a NULL cc->group. All to be revisited when NET_WM_STATE_STICKY hits cwm. Reported by many; testing and ok phessler.
Diffstat (limited to 'search.c')
-rw-r--r-- | search.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/search.c b/search.c index fd1210e..4b4f457 100644 --- a/search.c +++ b/search.c @@ -143,7 +143,7 @@ search_print_client(struct menu *mi, int list) cc->matchname = cc->name; (void)snprintf(mi->print, sizeof(mi->print), "(%d) %c%s", - cc->group->num, flag, cc->matchname); + cc->group ? cc->group->num : 0, flag, cc->matchname); if (!list && cc->matchname != cc->name && strlen(mi->print) < sizeof(mi->print) - 1) { |