summaryrefslogtreecommitdiffstats
path: root/tests/event.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2021-04-18 21:14:49 (GMT)
committerfvogel <fvogelnew1@free.fr>2021-04-18 21:14:49 (GMT)
commit3a003508be630e7e84c5590ddfd6be3676485b08 (patch)
treec171b601364734647f34c16ac86094d9eda2c209 /tests/event.test
parent867ecac49cdb44b0e64ffe81bc8373c3d52d55d4 (diff)
downloadtk-3a003508be630e7e84c5590ddfd6be3676485b08.zip
tk-3a003508be630e7e84c5590ddfd6be3676485b08.tar.gz
tk-3a003508be630e7e84c5590ddfd6be3676485b08.tar.bz2
Try focussing the window in which we will warp.
Diffstat (limited to 'tests/event.test')
-rw-r--r--tests/event.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/event.test b/tests/event.test
index 7a0e50d..c8d50dd 100644
--- a/tests/event.test
+++ b/tests/event.test
@@ -829,7 +829,7 @@ test event-9 {no <Enter> event is generated for the container window when its
bind .top <Enter> {lappend res %W}
pack [frame .top.f -bg green -width 50 -height 50] -anchor se -side bottom
tkwait visibility .top.f
- update
+ focus -force .top.f
event generate .top.f <Motion> -warp 1 -x 25 -y 25 ; # <Enter> sent to .top and .top.f
after 50 ; # Win specific - wait for SendInput to be executed
update ; # idletasks not enough