Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
after switching to OpenBSD again, I switched back to a saner color scheme
[dwm.git]
/
client.c
diff --git
a/client.c
b/client.c
index
cb5334e
..
8b98c19
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-73,12
+73,14
@@
focus(Client *c)
{
Client *old = sel;
{
Client *old = sel;
- if
(!issel)
+ if(!issel)
return;
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);
}
grabbutton(old, AnyButton, 0);
drawtitle(old);
}