diff options
author | fvogel <fvogelnew1@free.fr> | 2020-01-06 20:29:38 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-01-06 20:29:38 (GMT) |
commit | d79922ec294e185a5674469215bc4193c2bee0dc (patch) | |
tree | 6cf3e2d289201de6fb9f84449ad91137e35d9a94 /generic/tkBind.c | |
parent | a17aca8407ef092b3adfc1a8ccbd701eccf1ed6f (diff) | |
download | tk-d79922ec294e185a5674469215bc4193c2bee0dc.zip tk-d79922ec294e185a5674469215bc4193c2bee0dc.tar.gz tk-d79922ec294e185a5674469215bc4193c2bee0dc.tar.bz2 |
Reorder code snippet in HandleEventGenerate to make it easier to understand. This changes nothing in how things work.
Diffstat (limited to 'generic/tkBind.c')
-rw-r--r-- | generic/tkBind.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c index f65d2ee..c744975 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.c @@ -4361,11 +4361,6 @@ HandleEventGenerate( Tk_Window warpWindow = Tk_IdToWindow(dispPtr->display, event.general.xmotion.window); - if (!(dispPtr->flags & TK_DISPLAY_IN_WARP)) { - Tcl_DoWhenIdle(DoWarp, dispPtr); - dispPtr->flags |= TK_DISPLAY_IN_WARP; - } - if (warpWindow != dispPtr->warpWindow) { if (warpWindow) { Tcl_Preserve(warpWindow); @@ -4378,6 +4373,11 @@ HandleEventGenerate( dispPtr->warpMainwin = mainWin; dispPtr->warpX = event.general.xmotion.x; dispPtr->warpY = event.general.xmotion.y; + + if (!(dispPtr->flags & TK_DISPLAY_IN_WARP)) { + Tcl_DoWhenIdle(DoWarp, dispPtr); + dispPtr->flags |= TK_DISPLAY_IN_WARP; + } } } |