projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9804726
)
fixed some issues nsz reported in IRC log
author
anselm@anselm1
<unknown>
Thu, 28 Feb 2008 21:44:52 +0000
(21:44 +0000)
committer
anselm@anselm1
<unknown>
Thu, 28 Feb 2008 21:44:52 +0000
(21:44 +0000)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index e50dfb80b6dd976ff28f13e8d0976525c4f1ab9f..421db610bed5a750ce16fc88ffb9a3bea8a10e8b 100644
(file)
--- 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)