diff options
author | Colomban Wendling <cwendling@hypra.fr> | 2023-01-31 11:25:28 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2023-03-03 10:57:11 +0000 |
commit | 655f6164e38c2f675beb5272fc6a9780f4767429 (patch) | |
tree | 583afce5ac496e805e4af0e00eac292ae3da32f1 /sal/test | |
parent | 1791b26d75bd50971fe58627c6554f1711890817 (diff) |
test: Run user dialog callback in idle time
On e.g. Windows we need to let the dialogs fully finish starting up
before we can properly interact with them, and especially close them
again.
We notice new dialogs with the WindowActivate event, but this will
happen before the dialog is fully set up internally, leading to
failures on Windows. In practice, the WindowActivate event might be
dispatched before the dialog setup function finishes, leading to an
intermediate state at WindowActivate time.
Work around this by running the user code in an idle timer in response
to the WindowActivate event, so that the setup code can return before
the callback is dispatched.
Based on findings by Michael Weghorn, thanks!
Change-Id: Ieecee09d84144570fe1943ca12dc1db6d9f64524
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146378
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'sal/test')
0 files changed, 0 insertions, 0 deletions