summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-08-23 20:51:36 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-08-23 20:51:36 (GMT)
commit76052445ac39afd2c455431d80335dd464ed755e (patch)
treeb60236ea829d20d4fc923903ff3953b0d4ba497f /generic
parent0fbc2c33a10a40e46c9247049d602901b522c674 (diff)
parentd1ffebb971d9a844511bf96c8c734b96c0b75424 (diff)
downloadtk-76052445ac39afd2c455431d80335dd464ed755e.zip
tk-76052445ac39afd2c455431d80335dd464ed755e.tar.gz
tk-76052445ac39afd2c455431d80335dd464ed755e.tar.bz2
Fixed [a2abc45ee6] - Cursor at wrong position after event generate -warp on secondary screen.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkBind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c
index acc4e43..bb95fa9 100644
--- a/generic/tkBind.c
+++ b/generic/tkBind.c
@@ -3460,7 +3460,7 @@ HandleEventGenerate(
Tcl_DoWhenIdle(DoWarp, dispPtr);
dispPtr->flags |= TK_DISPLAY_IN_WARP;
}
- dispPtr->warpWindow = Tk_IdToWindow(Tk_Display(mainWin),
+ dispPtr->warpWindow = Tk_IdToWindow(dispPtr->display,
event.general.xmotion.window);
dispPtr->warpMainwin = mainWin;
dispPtr->warpX = event.general.xmotion.x;