summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client.c2
-rw-r--r--event.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index 434a93b..6f6ed99 100644
--- a/client.c
+++ b/client.c
@@ -230,7 +230,7 @@ manage(Window w, XWindowAttributes *wa)
230 XGetTransientForHint(dpy, c->win, &trans); 230 XGetTransientForHint(dpy, c->win, &trans);
231 twa.override_redirect = 1; 231 twa.override_redirect = 1;
232 twa.background_pixmap = ParentRelative; 232 twa.background_pixmap = ParentRelative;
233 twa.event_mask = ExposureMask; 233 twa.event_mask = ExposureMask | EnterWindowMask;
234 234
235 c->title = XCreateWindow(dpy, root, c->tx, c->ty, c->tw, c->th, 235 c->title = XCreateWindow(dpy, root, c->tx, c->ty, c->tw, c->th,
236 0, DefaultDepth(dpy, screen), CopyFromParent, 236 0, DefaultDepth(dpy, screen), CopyFromParent,
diff --git a/event.c b/event.c
index 0359971..a961e5c 100644
--- a/event.c
+++ b/event.c
@@ -202,7 +202,7 @@ enternotify(XEvent *e)
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;