aewl
changeset 161:f381e34158d9
implemented focus on enterwindow on titlebars
author | arg@10ksloc.org |
---|---|
date | Wed, 02 Aug 2006 11:28:27 +0200 |
parents | c8db0a825775 |
children | a6a31e485fbd |
files | client.c event.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/client.c Wed Aug 02 11:13:32 2006 +0200 1.2 +++ b/client.c Wed Aug 02 11:28:27 2006 +0200 1.3 @@ -230,7 +230,7 @@ 1.4 XGetTransientForHint(dpy, c->win, &trans); 1.5 twa.override_redirect = 1; 1.6 twa.background_pixmap = ParentRelative; 1.7 - twa.event_mask = ExposureMask; 1.8 + twa.event_mask = ExposureMask | EnterWindowMask; 1.9 1.10 c->title = XCreateWindow(dpy, root, c->tx, c->ty, c->tw, c->th, 1.11 0, DefaultDepth(dpy, screen), CopyFromParent,
2.1 --- a/event.c Wed Aug 02 11:13:32 2006 +0200 2.2 +++ b/event.c Wed Aug 02 11:28:27 2006 +0200 2.3 @@ -202,7 +202,7 @@ 2.4 if(ev->detail == NotifyInferior) 2.5 return; 2.6 2.7 - if((c = getclient(ev->window))) 2.8 + if((c = getclient(ev->window)) || (c = getctitle(ev->window))) 2.9 focus(c); 2.10 else if(ev->window == root) 2.11 issel = True;