From 172da14d77718199a262fe0ae593d6a5862714da Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 6 Feb 2017 18:10:28 +0000 Subject: [PATCH 1/2] Call client_resize instead of client_move after client_placecalc since the size may also change. from Vadim Vygonets --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 6cb222a..9917a4e 100644 --- a/client.c +++ b/client.c @@ -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 { From 8d9d84d8592fb03c7a6cf7f68f61b1e84c3ac596 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 10 Feb 2017 15:00:54 +0000 Subject: [PATCH 2/2] 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. --- group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group.c b/group.c index a26c53d..2152ee0 100644 --- a/group.c +++ b/group.c @@ -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); }