summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2024-05-25 13:19:06 (GMT)
committerculler <culler>2024-05-25 13:19:06 (GMT)
commitc7a1c8ab1b6d29b631d2b77c3ddf3159b191000e (patch)
tree12200bc07fe42078da0a17087e167a8169a6b90f
parent9317a30b3627fcf0010375bf708cc3fb5432a915 (diff)
downloadtk-c7a1c8ab1b6d29b631d2b77c3ddf3159b191000e.zip
tk-c7a1c8ab1b6d29b631d2b77c3ddf3159b191000e.tar.gz
tk-c7a1c8ab1b6d29b631d2b77c3ddf3159b191000e.tar.bz2
Fix silly error.
-rw-r--r--win/tkWinWm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 31fa03f..6d72009 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -2584,9 +2584,9 @@ static void CheckForPointer(TkWindow *winPtr)
unsigned int state = TkWinGetModifierState();
TkWindow **windows = TkWmStackorderToplevel(winPtr->mainPtr->winPtr);
TkWindow **w;
- x = (int) mouse.x;
- y = (int) mouse.y;
TkGetPointerCoords(NULL, &x, &y);
+ mouse.x = x;
+ mouse.y = y;
if (windows != NULL) {
for (w = windows; *w ; w++) {
RECT windowRect;