diff options
author | arg@localhost.10kloc.org <unknown> | 2006-08-21 17:41:09 +0200 |
---|---|---|
committer | arg@localhost.10kloc.org <unknown> | 2006-08-21 17:41:09 +0200 |
commit | 1b9fe55025f84a8430b4be5822784551746eee8d (patch) | |
tree | 8dd853c58113c12a97f6faf9ab02d753575b53b8 /client.c | |
parent | 2272df9d3179ec639066614f4d36d18df16ff725 (diff) | |
download | dwm-1b9fe55025f84a8430b4be5822784551746eee8d.tar.gz dwm-1b9fe55025f84a8430b4be5822784551746eee8d.tar.bz2 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.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -73,12 +73,14 @@ focus(Client *c) { Client *old = sel; - if (!issel) + if(!issel) return; - if(sel && sel->ismax && sel != c) - togglemax(NULL); - sel = c; - if(old && old != c) { + if(!sel) + sel = c; + else if(sel != c) { + if(sel->ismax) + togglemax(NULL); + sel = c; grabbutton(old, AnyButton, 0); drawtitle(old); } |