diff options
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r-- | win/tkWinWm.c | 4 |
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; |