summaryrefslogtreecommitdiffstats
path: root/generic/tkGrab.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-06-09 21:15:42 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-06-09 21:15:42 (GMT)
commitd1f8383cee18d1bb8d228018c7af12595667d643 (patch)
tree18f7993937c3172abfa31cc4522835a5eb1d4dbd /generic/tkGrab.c
parent58999c1d3b468e268278875aa34cb9c93068263b (diff)
downloadtk-d1f8383cee18d1bb8d228018c7af12595667d643.zip
tk-d1f8383cee18d1bb8d228018c7af12595667d643.tar.gz
tk-d1f8383cee18d1bb8d228018c7af12595667d643.tar.bz2
Change the fix (see details in ticket [75b8fbfd77])
Diffstat (limited to 'generic/tkGrab.c')
-rw-r--r--generic/tkGrab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkGrab.c b/generic/tkGrab.c
index ade730e..21c06a9 100644
--- a/generic/tkGrab.c
+++ b/generic/tkGrab.c
@@ -881,7 +881,7 @@ TkPointerEvent(
return 1;
}
} else {
- if (eventPtr->xbutton.button == AnyButton ||
+ if (eventPtr->xbutton.button != AnyButton &&
((eventPtr->xbutton.state & ALL_BUTTONS)
== buttonStates[eventPtr->xbutton.button - Button1])) {
ReleaseButtonGrab(dispPtr); /* Note 4. */