client.c
changeset 161 f381e34158d9
parent 159 a5eab6aaf859
child 163 e2e1de08341d
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);