diff options
author | culler <culler> | 2024-05-23 15:22:01 (GMT) |
---|---|---|
committer | culler <culler> | 2024-05-23 15:22:01 (GMT) |
commit | 00623999b20177be1ce0a6ca8c83dd0d9269e9d2 (patch) | |
tree | 68e19a3d74b2a4f5dfd1bd6d8e5feede8e796cdd | |
parent | 6704a6d04762b9963ce78a778ff706b3e7a90d61 (diff) | |
download | tk-00623999b20177be1ce0a6ca8c83dd0d9269e9d2.zip tk-00623999b20177be1ce0a6ca8c83dd0d9269e9d2.tar.gz tk-00623999b20177be1ce0a6ca8c83dd0d9269e9d2.tar.bz2 |
Remove general code for checking if a display is valid because it affects timing, which breaks all of the event-9 tests.
-rw-r--r-- | generic/tkWindow.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index cbbdafe..644fea3 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -215,9 +215,6 @@ static int Initialize(Tcl_Interp *interp); static int NameWindow(Tcl_Interp *interp, TkWindow *winPtr, TkWindow *parentPtr, const char *name); static void UnlinkWindow(TkWindow *winPtr); -#if 0 -static Bool HasValidDisplay(Tk_Window tkwin); -#endif /* * This static variable only makes sense for macOS and Windows, which never @@ -523,40 +520,7 @@ GetScreen( *screenPtr = screenId; return dispPtr; } -#if 0 -/* - *-------------------------------------------------------------- - * - * HasValidDisplay -- - * - * Given a Tk window, returns True if the window's display is still on - * the display list. - * - * Results: - * - * True if the display is on the display list, False otherwise/ - * - * Side effects: - * None - * - *-------------------------------------------------------------- - */ - -static Bool HasValidDisplay( - Tk_Window tkwin) -{ - TkWindow *winPtr = (TkWindow *) tkwin; - TkDisplay *dispPtr = (TkDisplay *) winPtr->display, *dispPtr2; - - for (dispPtr2 = TkGetDisplayList(); dispPtr2; dispPtr2 = dispPtr2->nextPtr) { - if (dispPtr2 == dispPtr) { - return True; - } - } - return False; -} -#endif /* *---------------------------------------------------------------------- * @@ -1382,10 +1346,6 @@ static void SendEnterLeaveForDestroy( if (displayBeingClosed) { return; } - // if (!HasValidDisplay(tkwin)) { - // return; - // } - XQueryPointer(Tk_Display(tkwin), None, NULL, NULL, &x, &y, NULL, NULL, &state); pointerWin = Tk_CoordsToWindow(x, y, tkwin); @@ -1809,10 +1769,6 @@ static void SendEnterLeaveForMap( if (displayBeingClosed) { return; } - // if (!HasValidDisplay(tkwin)) { - // return; - // } - XQueryPointer(Tk_Display(tkwin), None, NULL, NULL, &x, &y, NULL, NULL, &state); pointerWin = Tk_CoordsToWindow(x, y, tkwin); |