Introduction
Introduction Statistics Contact Development Disclaimer Help
timplemented focus on enterwindow on titlebars - dwm - [fork] customized build …
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 1d852259526e41ebaad7325ee42c118b1cc12f71
parent 3af6434085aee75bd90e22aee95419dc0ae0b969
Author: [email protected] <unknown>
Date: Wed, 2 Aug 2006 11:28:27 +0200
implemented focus on enterwindow on titlebars
Diffstat:
M client.c | 2 +-
M event.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/client.c b/client.c
t@@ -230,7 +230,7 @@ manage(Window w, XWindowAttributes *wa)
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,
diff --git a/event.c b/event.c
t@@ -202,7 +202,7 @@ enternotify(XEvent *e)
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;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.