fixed some issues nsz reported in IRC log

This commit is contained in:
anselm@anselm1 2008-02-28 21:44:52 +00:00
parent 9804726c82
commit ad0a2fa042
1 changed files with 3 additions and 1 deletions

4
dwm.c
View File

@ -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)