UNO method com.sun.star.awt.XExtendedToolkit.getActiveTopWindow is
documented to return the active top window of the OOo instance, if any.
Especially, the OOo instance apparently does not have an active top
window (and the method returns null) when a window from another
application has focus.
What is this method good for? Are there places where it can
legitimately be used?
Currently, it is used a lot in test code (qadevOOo), where it does not
work. The tests start to fail if, in parallel with the test execution,
other applications open windows on the same display (which easily
happens if multiple of those tests, each using its own OOo instance, are
run in parallel on the same display). The tests start to receive null
references from getActiveTopWindow calls, which they are not prepared to
handle (the tests typically open a document window or some dialog, wait
a little, and then expect to obtain the corresponding window through the
method call). I currently work on this issue on CWS sb118.
But, according to OpenGrok, there is also at least one suspicious
non-test places calling that method,
fpicker/source/unx/gnome/SalGtkPicker.cxx.
-Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]