mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
cvsimport
This commit is contained in:
commit
54c1b90725
6
group.c
6
group.c
@ -216,12 +216,16 @@ void
|
||||
group_movetogroup(struct client_ctx *cc, int idx)
|
||||
{
|
||||
struct screen_ctx *sc = cc->sc;
|
||||
struct group_ctx *gc;
|
||||
|
||||
if (idx < 0 || idx >= CALMWM_NGROUPS)
|
||||
err(1, "group_movetogroup: index out of range (%d)", idx);
|
||||
|
||||
if(sc->group_active != &sc->groups[idx])
|
||||
gc = &sc->groups[idx];
|
||||
if (gc->hidden) {
|
||||
client_hide(cc);
|
||||
gc->nhidden++;
|
||||
}
|
||||
group_add(&sc->groups[idx], cc);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user