Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
3af6434
)
implemented focus on enterwindow on titlebars
author
[email protected]
<unknown>
Wed, 2 Aug 2006 09:28:27 +0000
(11:28 +0200)
committer
[email protected]
<unknown>
Wed, 2 Aug 2006 09:28:27 +0000
(11:28 +0200)
client.c
diff
|
blob
|
history
event.c
diff
|
blob
|
history
diff --git
a/client.c
b/client.c
index
434a93b
..
6f6ed99
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-230,7
+230,7
@@
manage(Window w, XWindowAttributes *wa)
XGetTransientForHint(dpy, c->win, &trans);
twa.override_redirect = 1;
twa.background_pixmap = ParentRelative;
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,
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
index
0359971
..
a961e5c
100644
(file)
--- a/
event.c
+++ b/
event.c
@@
-202,7
+202,7
@@
enternotify(XEvent *e)
if(ev->detail == NotifyInferior)
return;
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;
focus(c);
else if(ev->window == root)
issel = True;