view.c
changeset 479 de69a7b0c8fa
parent 473 2d8af0d7920d
child 480 680aca428830
--- a/view.c	Fri Sep 22 11:24:01 2006 +0200
+++ b/view.c	Fri Sep 22 11:49:24 2006 +0200
@@ -278,10 +278,10 @@
 		return;
 
 	if(sel->isfloat || (arrange == dofloat)) {
-		tmp = sel->x; sel->x = sel->rx; sel->rx = tmp;
-		tmp = sel->y; sel->y = sel->ry; sel->ry = tmp;
-		tmp = sel->w; sel->w = sel->rw; sel->rw = tmp;
-		tmp = sel->h; sel->h = sel->rh; sel->rh = tmp;
+		sel->x = sx;
+		sel->y = bh;
+		sel->w = sw;
+		sel->h = sh - bh;
 		resize(sel, True, TopLeft);
 		while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
 		return;