Mercurial > dwm-meillo
comparison event.c @ 161:f381e34158d9
implemented focus on enterwindow on titlebars
author | arg@10ksloc.org |
---|---|
date | Wed, 02 Aug 2006 11:28:27 +0200 |
parents | c8db0a825775 |
children | e2e1de08341d |
comparison
equal
deleted
inserted
replaced
160:c8db0a825775 | 161:f381e34158d9 |
---|---|
200 XCrossingEvent *ev = &e->xcrossing; | 200 XCrossingEvent *ev = &e->xcrossing; |
201 | 201 |
202 if(ev->detail == NotifyInferior) | 202 if(ev->detail == NotifyInferior) |
203 return; | 203 return; |
204 | 204 |
205 if((c = getclient(ev->window))) | 205 if((c = getclient(ev->window)) || (c = getctitle(ev->window))) |
206 focus(c); | 206 focus(c); |
207 else if(ev->window == root) | 207 else if(ev->window == root) |
208 issel = True; | 208 issel = True; |
209 } | 209 } |
210 | 210 |