applied anydots proposal to let togglefloating restore fixed windows
authorAnselm R. Garbe <arg@suckless.org>
Fri, 25 May 2007 15:28:10 +0200
changeset 902 e1ca8a59820a
parent 901 8f6f61e07567
child 903 467c754b607d
applied anydots proposal to let togglefloating restore fixed windows
client.c
--- a/client.c	Thu May 24 16:25:09 2007 +0200
+++ b/client.c	Fri May 25 15:28:10 2007 +0200
@@ -305,6 +305,8 @@
 	if(!sel || lt->arrange == floating)
 		return;
 	sel->isfloating = !sel->isfloating;
+	if(sel->isfloating && sel->isfixed)
+		resize(sel, sel->x, sel->y, sel->minw, sel->minh, True);
 	lt->arrange();
 }