comparison client.c @ 319:94d2d7658673

after switching to OpenBSD again, I switched back to a saner color scheme
author arg@localhost.10kloc.org
date Mon, 21 Aug 2006 17:41:09 +0200
parents 1b45d6f14fca
children 30b447bad2e5
comparison
equal deleted inserted replaced
318:1b45d6f14fca 319:94d2d7658673
71 void 71 void
72 focus(Client *c) 72 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 }
85 ungrabbutton(c, AnyButton, 0); 87 ungrabbutton(c, AnyButton, 0);
86 drawtitle(c); 88 drawtitle(c);