summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-08-23 20:51:11 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-08-23 20:51:11 (GMT)
commitbfee1152c7fdbd81b9341af13ece52aa95a4ce1e (patch)
treeaec1be606bf2ee04952da26410ed9a20fb350119
parent78b0ef91ba73274cbe049062a4da3778efee8a37 (diff)
parent06376badee81f04b1040f0dd5aea89cc2b864efb (diff)
downloadtk-bfee1152c7fdbd81b9341af13ece52aa95a4ce1e.zip
tk-bfee1152c7fdbd81b9341af13ece52aa95a4ce1e.tar.gz
tk-bfee1152c7fdbd81b9341af13ece52aa95a4ce1e.tar.bz2
Fixed [a2abc45ee6] - Cursor at wrong position after event generate -warp on secondary screen.
-rw-r--r--generic/tkBind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkBind.c b/generic/tkBind.c
index 3b05066..d3fdc96 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;