49 c->r[RFloat].y = wa->y; |
49 c->r[RFloat].y = wa->y; |
50 c->r[RFloat].width = wa->width; |
50 c->r[RFloat].width = wa->width; |
51 c->r[RFloat].height = wa->height; |
51 c->r[RFloat].height = wa->height; |
52 c->border = wa->border_width; |
52 c->border = wa->border_width; |
53 XSetWindowBorderWidth(dpy, c->win, 0); |
53 XSetWindowBorderWidth(dpy, c->win, 0); |
54 c->proto = win_proto(c->win); |
|
55 XGetTransientForHint(dpy, c->win, &c->trans); |
54 XGetTransientForHint(dpy, c->win, &c->trans); |
56 if(!XGetWMNormalHints(dpy, c->win, &c->size, &msize) || !c->size.flags) |
55 if(!XGetWMNormalHints(dpy, c->win, &c->size, &msize) || !c->size.flags) |
57 c->size.flags = PSize; |
56 c->size.flags = PSize; |
58 c->fixedsize = |
57 c->fixedsize = |
59 (c->size.flags & PMinSize && c->size.flags & PMaxSize |
58 (c->size.flags & PMinSize && c->size.flags & PMaxSize |
60 && c->size.min_width == c->size.max_width |
59 && c->size.min_width == c->size.max_width |
61 && c->size.min_height == c->size.max_height); |
60 && c->size.min_height == c->size.max_height); |
62 XAddToSaveSet(dpy, c->win); |
|
63 update_client_name(c); |
61 update_client_name(c); |
64 twa.override_redirect = 1; |
62 twa.override_redirect = 1; |
65 twa.background_pixmap = ParentRelative; |
63 twa.background_pixmap = ParentRelative; |
66 twa.event_mask = ExposureMask; |
64 twa.event_mask = ExposureMask; |
67 |
65 |