Glynn Clements <glynn(a)sensei.co.uk> writes:
Looking at XtWindowToWidget (in xc/lib/Xt/Event.c) indicates that Xt
keeps a per-display hashtable of Widget/Window pairs, with the Window
as the key. So, it's not having to do anything as expensive as
scanning the Widget tree.
And thus cheaper than the window structure walk we do now to find the
scrollbars. It seems like using XtWindowToWidget and also looking for
parents is the way too go.
Jan