diff options
| author | arg@10ksloc.org <unknown> | 2006-08-02 11:28:27 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-02 11:28:27 +0200 |
| commit | 1d852259526e41ebaad7325ee42c118b1cc12f71 (patch) | |
| tree | 9d9992c1595caf5e9d190dd404c091437677362c | |
| parent | applied Sanders patches (numlock2) (diff) | |
| download | dwm-1d852259526e41ebaad7325ee42c118b1cc12f71.tar.gz dwm-1d852259526e41ebaad7325ee42c118b1cc12f71.zip | |
implemented focus on enterwindow on titlebars
Diffstat (limited to '')
| -rw-r--r-- | client.c | 2 | ||||
| -rw-r--r-- | event.c | 2 |
2 files changed, 2 insertions, 2 deletions
| @@ -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, |
| @@ -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; |
