Mercurial > dwm-meillo
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 wrap: on
line diff
--- a/client.c Wed Aug 02 11:13:32 2006 +0200 +++ b/client.c Wed Aug 02 11:28:27 2006 +0200 @@ -230,7 +230,7 @@ XGetTransientForHint(dpy, c->win, &trans); twa.override_redirect = 1; twa.background_pixmap = ParentRelative; - twa.event_mask = ExposureMask; + twa.event_mask = ExposureMask | EnterWindowMask; c->title = XCreateWindow(dpy, root, c->tx, c->ty, c->tw, c->th, 0, DefaultDepth(dpy, screen), CopyFromParent,
--- a/event.c Wed Aug 02 11:13:32 2006 +0200 +++ b/event.c Wed Aug 02 11:28:27 2006 +0200 @@ -202,7 +202,7 @@ if(ev->detail == NotifyInferior) return; - if((c = getclient(ev->window))) + if((c = getclient(ev->window)) || (c = getctitle(ev->window))) focus(c); else if(ev->window == root) issel = True;