[comp.windows.x] XPostit, more problems

toml@ninja.Solbourne.COM (Tom LaStrange) (02/01/90)

> I'm very enamored of XPostit, but have one annoying problem.  We run
> X11.R4 on SparcStation-1's with TWM.
> 
> When I save windows, exit xpostit and restort it, the windows are
> about 40 pixels lower on the screen than they were before.  I presume
> that this is exactly the title bar, since when I remove the title bar,
> the lossage goes away.  I believe the problem is in the code that
> writes the window out.  Looks to me like it is translating coordinate
> systems of the origin of the window from the window to the root, when
> the manual page says that the origin is relative to the window's
> parent

I haven't tried XPostit but I think I know what's going on.  XPostit is 
saving the location of its windows.  That's fine except when the whole mess
restarts, twm is going to place its decoration at the locations saved
by XPostit, hence moving the windows by the titlebar height.  This is 
exactly what the ICCCM says that the window manager should do.  The problem
is that XPostit really wants to save the location of the window manager frame
rather than the location of its window and I don't know of a clean way to
do that.  You can't simply start looking through the window tree until you
find the root window.  There is nothing that says that the window manager 
frame window must sit on the root.  Do we need yet another property 
for the window manager frame?  WM_DECORATION?  Am I missing something?

--
Tom LaStrange

Solbourne Computer Inc.    ARPA: toml@Solbourne.COM
1900 Pike Rd.              UUCP: ...!{boulder,sun}!stan!toml
Longmont, CO  80501