cvsimport

* refs/heads/master:
  Fix group hidden state when a client wants to be on all desktops on start; reported by Vadim Vygonets with diff, but another approach was taken.
  Call client_resize instead of client_move after client_placecalc since the size may also change.
This commit is contained in:
okan 2017-02-10 15:00:54 +00:00
commit ab8da61802
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ client_init(Window win, struct screen_ctx *sc, int active)
if (wattr.map_state != IsViewable) {
client_placecalc(cc);
client_move(cc);
client_resize(cc, 0);
if ((cc->wmh) && (cc->wmh->flags & StateHint))
client_set_wm_state(cc, cc->wmh->initial_state);
} else {

View File

@ -164,7 +164,7 @@ group_movetogroup(struct client_ctx *cc, int idx)
if (cc->gc == gc)
return;
if (group_holds_only_hidden(gc))
if (gc->num != 0 && group_holds_only_hidden(gc))
client_hide(cc);
group_assign(gc, cc);
}