[comp.windows.x] twm and DecorateTransients

Kimbrough@dsg.csc.ti.COM (Kerry Kimbrough) (05/05/90)

With this option, twm does a peculiar thing that I'm inclined to regard as a bug. But
am I wrong?

With DecorateTransients, twm will reparent transient top-level's. But the reparenting
occurs as an after-effect of mapping the window, every time(!). Unmap the window and
its parent is the root; map it and it has a twm-appointed guardian.

This causes a problem: root-relative geometry computations are "off" after mapping.
If this were only for the top-level itself, I wouldn't feel justified in complaining.
But it can also affect non-top-level descendants.  In my case, WarpPointer was sent
to position the pointer w.r.t a descendant destination before its top-level ancestor
was mapped.  But then after mapping and twm reparenting, the descendant has been moved
w.r.t the pointer. No fair!