summaryrefslogtreecommitdiff
path: root/app/cwm
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2019-03-07 13:24:11 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2019-03-07 13:24:11 +0000
commitca444567602cd7a1064d184074ca3cf5bbc4afcd (patch)
tree5ad81cb905baaa4b27dc5309d2fb1754913c12d3 /app/cwm
parent0baf1cdb5b2371a5b7cd6a3da5f311a986b51fc3 (diff)
zip extra lines
Diffstat (limited to 'app/cwm')
-rw-r--r--app/cwm/group.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/cwm/group.c b/app/cwm/group.c
index da2072ae9..e23130041 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.
*
- * $OpenBSD: group.c,v 1.135 2019/03/07 13:14:41 okan Exp $
+ * $OpenBSD: group.c,v 1.136 2019/03/07 13:24:10 okan Exp $
*/
#include <sys/types.h>
@@ -78,7 +78,6 @@ group_show(struct group_ctx *gc)
(cc->flags & CLIENT_HIDDEN))
client_show(cc);
}
-
group_restack(gc);
group_setactive(gc);
}
@@ -132,7 +131,6 @@ group_init(struct screen_ctx *sc, int num, const char *name)
gc->sc = sc;
gc->name = xstrdup(name);
gc->num = num;
-
TAILQ_INSERT_TAIL(&sc->groupq, gc, entry);
if (num == 1)
@@ -172,14 +170,13 @@ group_toggle_membership(struct client_ctx *cc)
struct screen_ctx *sc = cc->sc;
struct group_ctx *gc = sc->group_active;
- if (gc == cc->gc) {
+ if (cc->gc == gc) {
group_assign(NULL, cc);
cc->flags |= CLIENT_UNGROUP;
} else {
group_assign(gc, cc);
cc->flags |= CLIENT_GROUP;
}
-
client_draw_border(cc);
}
@@ -292,7 +289,6 @@ group_cycle(struct screen_ctx *sc, int flags)
else if (!group_holds_only_hidden(newgc))
group_hide(newgc);
}
-
if (showgroup == NULL)
return;