fixed some issues nsz reported in IRC log
This commit is contained in:
parent
9804726c82
commit
ad0a2fa042
4
dwm.c
4
dwm.c
|
@ -294,11 +294,11 @@ arrange(void) {
|
||||||
else
|
else
|
||||||
ban(c);
|
ban(c);
|
||||||
|
|
||||||
|
focus(NULL);
|
||||||
for(i = 0; i < nviews; i++) {
|
for(i = 0; i < nviews; i++) {
|
||||||
views[i].layout->arrange(&views[i]);
|
views[i].layout->arrange(&views[i]);
|
||||||
restack(&views[i]);
|
restack(&views[i]);
|
||||||
}
|
}
|
||||||
focus(NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -394,6 +394,7 @@ checkotherwm(void) {
|
||||||
void
|
void
|
||||||
cleanup(void) {
|
cleanup(void) {
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
close(STDIN_FILENO);
|
close(STDIN_FILENO);
|
||||||
while(stack) {
|
while(stack) {
|
||||||
unban(stack);
|
unban(stack);
|
||||||
|
@ -706,6 +707,7 @@ floating(View *v) { /* default floating layout */
|
||||||
void
|
void
|
||||||
focus(Client *c) {
|
focus(Client *c) {
|
||||||
View *v = selview;
|
View *v = selview;
|
||||||
|
|
||||||
if(c)
|
if(c)
|
||||||
selview = getview(c);
|
selview = getview(c);
|
||||||
if(selview != v)
|
if(selview != v)
|
||||||
|
|
Loading…
Reference in New Issue