diff options
author | culler <culler> | 2024-05-20 15:41:09 (GMT) |
---|---|---|
committer | culler <culler> | 2024-05-20 15:41:09 (GMT) |
commit | 32eb23bc4d60fab1c8691f1afce5a10a05c70365 (patch) | |
tree | 90f33a7770283d110cf395ad11c402b4c30787ec | |
parent | 5a43993cb3259453bb802dfbb09cd9d88afd3201 (diff) | |
download | tk-32eb23bc4d60fab1c8691f1afce5a10a05c70365.zip tk-32eb23bc4d60fab1c8691f1afce5a10a05c70365.tar.gz tk-32eb23bc4d60fab1c8691f1afce5a10a05c70365.tar.bz2 |
Don't pass a NULL display and None window to XQueryPointer.
-rw-r--r-- | generic/tkWindow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index 90a20f2..e322bb4 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -1332,7 +1332,8 @@ static void SendEnterLeaveForDestroy( Tk_Window pointerWin; TkWindow *containerPtr; - XQueryPointer(NULL, None, NULL, NULL, &x, &y, NULL, NULL, &state); + XQueryPointer(Tk_Display(tkwin), None, NULL, NULL, &x, &y, + NULL, NULL, &state); pointerWin = Tk_CoordsToWindow(x, y, tkwin); if (pointerWin == tkwin) { if (!Tk_IsTopLevel(tkwin)) { @@ -1751,7 +1752,8 @@ static void SendEnterLeaveForMap( unsigned int state; Tk_Window pointerWin; - XQueryPointer(NULL, None, NULL, NULL, &x, &y, NULL, NULL, &state); + XQueryPointer(Tk_Display(tkwin), None, NULL, NULL, &x, &y, + NULL, NULL, &state); pointerWin = Tk_CoordsToWindow(x, y, tkwin); if (pointerWin == tkwin) { Tk_UpdatePointer(tkwin, x, y, state); |