remove group in client_delete directly.

This commit is contained in:
okan
2013-05-06 16:03:11 +00:00
parent 27854d9061
commit 1db7cc2a18
3 changed files with 3 additions and 15 deletions

11
group.c
View File

@@ -308,17 +308,6 @@ group_cycle(struct screen_ctx *sc, int flags)
group_setactive(sc, showgroup->shortcut);
}
/* called when a client is deleted */
void
group_client_delete(struct client_ctx *cc)
{
if (cc->group == NULL)
return;
TAILQ_REMOVE(&cc->group->clients, cc, group_entry);
cc->group = NULL; /* he he */
}
void
group_menu(XButtonEvent *e)
{