Jan Vroonhof wrote:
Does anybody know how expensive XtWindowToWidget is?
How long is a piece of string?
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.
--
Glynn Clements <glynn(a)sensei.co.uk>