summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorarg@localhost.10kloc.org <unknown>2006-08-21 17:41:09 +0200
committerarg@localhost.10kloc.org <unknown>2006-08-21 17:41:09 +0200
commit1b9fe55025f84a8430b4be5822784551746eee8d (patch)
tree8dd853c58113c12a97f6faf9ab02d753575b53b8 /client.c
parentapplied Sanders focus_* patches, removed the unnecessary clean-prefix from th... (diff)
downloaddwm-1b9fe55025f84a8430b4be5822784551746eee8d.tar.gz
dwm-1b9fe55025f84a8430b4be5822784551746eee8d.zip
after switching to OpenBSD again, I switched back to a saner color scheme
Diffstat (limited to 'client.c')
-rw-r--r--client.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/client.c b/client.c
index cb5334e..8b98c19 100644
--- a/client.c
+++ b/client.c
@@ -73,12 +73,14 @@ focus(Client *c)
73{ 73{
74 Client *old = sel; 74 Client *old = sel;
75 75
76 if (!issel) 76 if(!issel)
77 return; 77 return;
78 if(sel && sel->ismax && sel != c) 78 if(!sel)
79 togglemax(NULL); 79 sel = c;
80 sel = c; 80 else if(sel != c) {
81 if(old && old != c) { 81 if(sel->ismax)
82 togglemax(NULL);
83 sel = c;
82 grabbutton(old, AnyButton, 0); 84 grabbutton(old, AnyButton, 0);
83 drawtitle(old); 85 drawtitle(old);
84 } 86 }