diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-02 15:58:57 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-01-02 15:58:57 (GMT) |
commit | 55091eb14914c24bbae66062f600e2ec17b3352b (patch) | |
tree | fbf3d1dda6b1c4120ea8de8abb0cca9a64c695e1 /generic | |
parent | 73d95cf6f972ef7af3b41b2d80f1f7ba62f41878 (diff) | |
download | tk-55091eb14914c24bbae66062f600e2ec17b3352b.zip tk-55091eb14914c24bbae66062f600e2ec17b3352b.tar.gz tk-55091eb14914c24bbae66062f600e2ec17b3352b.tar.bz2 |
Use more X11 macro's, in stead of accessing fields directly. Mostly backported from 8.7
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkPointer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkPointer.c b/generic/tkPointer.c index 7753c36..1227215 100644 --- a/generic/tkPointer.c +++ b/generic/tkPointer.c @@ -428,7 +428,7 @@ XGrabPointer( ThreadSpecificData *tsdPtr = Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); - display->request++; + LastKnownRequestProcessed(display)++; tsdPtr->grabWinPtr = (TkWindow *) Tk_IdToWindow(display, grab_window); tsdPtr->restrictWinPtr = NULL; TkpSetCapture(tsdPtr->grabWinPtr); @@ -463,7 +463,7 @@ XUngrabPointer( ThreadSpecificData *tsdPtr = Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); - display->request++; + LastKnownRequestProcessed(display)++; tsdPtr->grabWinPtr = NULL; tsdPtr->restrictWinPtr = NULL; TkpSetCapture(NULL); @@ -590,7 +590,7 @@ XDefineCursor( if (tsdPtr->cursorWinPtr == winPtr) { UpdateCursor(winPtr); } - display->request++; + LastKnownRequestProcessed(display)++; return Success; } |