implemented focus on enterwindow on titlebars
1d852259
2 file(s) · +2 −2
| 230 | 230 | XGetTransientForHint(dpy, c->win, &trans); |
|
| 231 | 231 | twa.override_redirect = 1; |
|
| 232 | 232 | twa.background_pixmap = ParentRelative; |
|
| 233 | - | twa.event_mask = ExposureMask; |
|
| 233 | + | twa.event_mask = ExposureMask | EnterWindowMask; |
|
| 234 | 234 | ||
| 235 | 235 | c->title = XCreateWindow(dpy, root, c->tx, c->ty, c->tw, c->th, |
|
| 236 | 236 | 0, DefaultDepth(dpy, screen), CopyFromParent, |
| 202 | 202 | if(ev->detail == NotifyInferior) |
|
| 203 | 203 | return; |
|
| 204 | 204 | ||
| 205 | - | if((c = getclient(ev->window))) |
|
| 205 | + | if((c = getclient(ev->window)) || (c = getctitle(ev->window))) |
|
| 206 | 206 | focus(c); |
|
| 207 | 207 | else if(ev->window == root) |
|
| 208 | 208 | issel = True; |