Mercurial > dwm-meillo
comparison client.c @ 161:f381e34158d9
implemented focus on enterwindow on titlebars
author | arg@10ksloc.org |
---|---|
date | Wed, 02 Aug 2006 11:28:27 +0200 |
parents | a5eab6aaf859 |
children | e2e1de08341d |
comparison
equal
deleted
inserted
replaced
160:c8db0a825775 | 161:f381e34158d9 |
---|---|
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); |