summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2020-06-06 21:04:19 (GMT)
committerfvogel <fvogelnew1@free.fr>2020-06-06 21:04:19 (GMT)
commitfc3ac7bddfaab3aa339544ced10afdf77c0477c4 (patch)
treecbb1470c20efbb190da2f2bcdce10bb887517a94
parentcb7dce629f945d134a4d7595fbbb3b927f8829e2 (diff)
downloadtk-fc3ac7bddfaab3aa339544ced10afdf77c0477c4.zip
tk-fc3ac7bddfaab3aa339544ced10afdf77c0477c4.tar.gz
tk-fc3ac7bddfaab3aa339544ced10afdf77c0477c4.tar.bz2
Take into account that some WM, such as KDE/Plasma with the Aurorae theme engine, need a bit more time to setup a new toplevel and display its content.
-rw-r--r--tests/bind.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/bind.test b/tests/bind.test
index a2758c5..fb36445 100644
--- a/tests/bind.test
+++ b/tests/bind.test
@@ -6734,6 +6734,11 @@ test bind-35.1 {pointer warp with grab on master, bug [e3888d5820]} -constraints
-highlightbackground black -bg yellow -text "My label"
pack .top.l -side bottom
update
+ # On KDE/Plasma _with_the_Aurorae_theme_ (at least), setting up the toplevel
+ # and the label will not be finished after the above 'update'. The WM still
+ # needs some time before the window is fully ready. For me 50 ms is enough,
+ # but let's wait more (it depends on computer performance).
+ after 100 ; update
} -body {
grab .top ; # this will queue events
waitForGrab grabbed .top