changeset: 2055:59e0c1d1b25d
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Apr 02 06:07:01 2007 -0400
summary: Don't destroy 'nil' view if it isn't empty.
diff -r eee7833828fe -r 59e0c1d1b25d cmd/wmii/main.c
--- a/cmd/wmii/main.c Sun Apr 01 03:59:43 2007 -0400
+++ b/cmd/wmii/main.c Mon Apr 02 06:07:01 2007 -0400
@@ -406,7 +406,7 @@ spawn_command(const char *cmd) {
}
default:
waitpid(pid, &status, 0);
- if(status != 0)
+ /* if(status != 0)
exit(1); /* Error already printed */
break;
}
diff -r eee7833828fe -r 59e0c1d1b25d cmd/wmii/view.c
--- a/cmd/wmii/view.c Sun Apr 01 03:59:43 2007 -0400
+++ b/cmd/wmii/view.c Mon Apr 02 06:07:01 2007 -0400
@@ -428,7 +428,7 @@ update_views() {
}
}
- if(found && !strcmp(old->name, "nil"))
+ if(found && !strcmp(old->name, "nil") && is_empty(old))
destroy_view(old);
focus_view(screen, screen->sel);
}
Received on Mon Apr 02 2007 - 12:09:51 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:32 UTC