about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authoranselm@anselm1 <unknown>2008-02-28 21:44:52 +0000
committeranselm@anselm1 <unknown>2008-02-28 21:44:52 +0000
commitad0a2fa042e7a23536c57089a2555b5242fc1cd5 (patch)
tree44fc3e9582f4631c29a9ed21ab18442caa32f3ce
parent9804726c8289f6ccbc615d4820a2fa43116710e3 (diff)
downloaddwm-ad0a2fa042e7a23536c57089a2555b5242fc1cd5.tar.gz
fixed some issues nsz reported in IRC log
-rw-r--r--dwm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index e50dfb8..421db61 100644
--- a/dwm.c
+++ b/dwm.c
@@ -294,11 +294,11 @@ arrange(void) {
 		else
 			ban(c);
 
+	focus(NULL);
 	for(i = 0; i < nviews; i++) {
 		views[i].layout->arrange(&views[i]);
 		restack(&views[i]);
 	}
-	focus(NULL);
 }
 
 void
@@ -394,6 +394,7 @@ checkotherwm(void) {
 void
 cleanup(void) {
 	unsigned int i;
+
 	close(STDIN_FILENO);
 	while(stack) {
 		unban(stack);
@@ -706,6 +707,7 @@ floating(View *v) { /* default floating layout */
 void
 focus(Client *c) {
 	View *v = selview;
+
 	if(c)
 		selview = getview(c);
 	if(selview != v)