228 XSelectInput(dpy, c->win, |
228 XSelectInput(dpy, c->win, |
229 StructureNotifyMask | PropertyChangeMask | EnterWindowMask); |
229 StructureNotifyMask | PropertyChangeMask | EnterWindowMask); |
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, |
237 DefaultVisual(dpy, screen), |
237 DefaultVisual(dpy, screen), |
238 CWOverrideRedirect | CWBackPixmap | CWEventMask, &twa); |
238 CWOverrideRedirect | CWBackPixmap | CWEventMask, &twa); |