/* cc transient.c -o transient -lX11 */
r
= DefaultRootWindow(d
);
f
= XCreateSimpleWindow(d
, r
, 100, 100, 400, 400, 0, 0, 0);
h
.min_width
= h
.max_width
= h
.min_height
= h
.max_height
= 400;
h
.flags
= PMinSize
| PMaxSize
;
XSetWMNormalHints(d
, f
, &h
);
XStoreName(d
, f
, "floating");
XSelectInput(d
, f
, ExposureMask
);
t
= XCreateSimpleWindow(d
, r
, 50, 50, 100, 100, 0, 0, 0);
XSetTransientForHint(d
, t
, f
);
XStoreName(d
, t
, "transient");
XSelectInput(d
, t
, ExposureMask
);