On Thu, Oct 17, 2019 at 11:23:58AM -0400 I heard the voice of
Stefan Monnier, and lo! it spake thus:
> 
> AFAICT, that doesn't explain why this is needed for Firefox's
> popups.

It's because the form autofill popups[0] are separate windows
positioned by FF on top of it.  That is, they're not _children_ of the
main FF window; they're separate root-level X windows.  That's
necessary in the context menu's case, because it may need (well, want)
to extend outside the main FF window, for instance.

Now, I think in the abstract, the toolkit could use
XTranslateCoordinates() to figure out where to position [absolutely]
the new window, so that it's in the proper place relative to the
action it's trying to perform inside the window.  So, in some strict
sense, maybe it's a FF (or probably GTK, maybe) laziness bug.  But,
whatever...



[0] Also visible in some other cases, like the right-click context
    menu; it _should_ come up with the top-left corner at the pointed,
    but winds up with the mouse a titlebar-height down into it.


-- 
Matthew Fuller     (MF4839)   |  [email protected]
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.

Reply via email to