diff options
author | fvogel <fvogelnew1@free.fr> | 2020-06-02 06:52:47 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2020-06-02 06:52:47 (GMT) |
commit | 169bf5a922972c64aa154479d588919763f77e88 (patch) | |
tree | fd9b5522ca245c382a08a7b40180e19de8093fcf /generic/tkGrab.c | |
parent | 7e224c0bcdec400cbdb89459313b1e4ea73bc896 (diff) | |
download | tk-169bf5a922972c64aa154479d588919763f77e88.zip tk-169bf5a922972c64aa154479d588919763f77e88.tar.gz tk-169bf5a922972c64aa154479d588919763f77e88.tar.bz2 |
Remove the TK_DISPLAY_IN_WARP machinery completely.
Diffstat (limited to 'generic/tkGrab.c')
-rw-r--r-- | generic/tkGrab.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/generic/tkGrab.c b/generic/tkGrab.c index 0750bd5..c923608 100644 --- a/generic/tkGrab.c +++ b/generic/tkGrab.c @@ -775,14 +775,13 @@ TkPointerEvent( } if ((eventPtr->type == MotionNotify) && !appGrabbed) { - if ((dispPtr->flags & TK_DISPLAY_IN_WARP)) { - /* - * A NULL warpWindow means warping with respect to the whole screen. - * We can only be here if we're warping with respect to a window. - */ + /* + * A NULL warpWindow means warping with respect to the whole screen. + * We want to warp here only if we're warping with respect to a window. + */ - assert(dispPtr->warpWindow); + if (dispPtr->warpWindow) { /* * Warping with respect to a window can only be done if the window is @@ -797,7 +796,6 @@ TkPointerEvent( } Tcl_Release(dispPtr->warpWindow); dispPtr->warpWindow = NULL; - dispPtr->flags &= ~TK_DISPLAY_IN_WARP; } } @@ -827,15 +825,13 @@ TkPointerEvent( Tk_QueueWindowEvent(eventPtr, TCL_QUEUE_HEAD); return 0; } - if ((dispPtr->flags & TK_DISPLAY_IN_WARP)) { - assert(dispPtr->warpWindow); + if (dispPtr->warpWindow) { if (Tk_IsMapped(dispPtr->warpWindow) && Tk_WindowId(dispPtr->warpWindow) != None) { TkpWarpPointer(dispPtr); XForceScreenSaver(dispPtr->display, ScreenSaverReset); } Tcl_Release(dispPtr->warpWindow); dispPtr->warpWindow = NULL; - dispPtr->flags &= ~TK_DISPLAY_IN_WARP; } return 1; } |