From 8752aedfa608386f3472999b204d3abcb6335af8 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Thu, 28 Jun 2012 20:40:30 +0300 Subject: no need to tile if the moved client is floating and there are more than one clients on the desktop --- monsterwm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/monsterwm.c b/monsterwm.c index 22bf802..5a3f602 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -254,7 +254,7 @@ void client_to_desktop(const Arg *arg) { focus(prev); if (FOLLOW_WINDOW) change_desktop(arg); - else if (!c->isfloating && !c->istransient) tile(); + else if ((!c->isfloating && !c->istransient) || (head && !head->next)) tile(); desktopinfo(); } @@ -710,7 +710,8 @@ void removeclient(Client *c) { *p = c->next; if (c == prev) prev = prevclient(curr); if (c == curr || (head && !head->next)) focus(prev); - if (cd != nd) selectdesktop(cd); else if (!c->isfloating && !c->istransient) tile(); + if (cd != nd) selectdesktop(cd); + else if ((!c->isfloating && !c->istransient) || (head && !head->next)) tile(); free(c); c = NULL; } -- cgit v1.3.1