summaryrefslogtreecommitdiffstats
path: root/generic/tkGrab.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@noemail.net>2008-11-23 21:58:23 (GMT)
committerpatthoyts <patthoyts@noemail.net>2008-11-23 21:58:23 (GMT)
commite4d9bb220933a3e083ba0553be0dd64537fd4b51 (patch)
tree4ca0f6008e131429c87d3d92fa685222f04a00d5 /generic/tkGrab.c
parent97383dac845fb721b8c99412d85132af964daef4 (diff)
downloadtk-e4d9bb220933a3e083ba0553be0dd64537fd4b51.zip
tk-e4d9bb220933a3e083ba0553be0dd64537fd4b51.tar.gz
tk-e4d9bb220933a3e083ba0553be0dd64537fd4b51.tar.bz2
[Bug 1389270] event generate silently ignored focus events. These can now be generated.
FossilOrigin-Name: 185b0e79ee6405df6afbdb0e5e1e86a8dd8b6b2d
Diffstat (limited to 'generic/tkGrab.c')
-rw-r--r--generic/tkGrab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkGrab.c b/generic/tkGrab.c
index d07c197..8bf0e89 100644
--- a/generic/tkGrab.c
+++ b/generic/tkGrab.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkGrab.c,v 1.16 2008/10/17 23:18:37 nijtmans Exp $
+ * RCS: @(#) $Id: tkGrab.c,v 1.17 2008/11/23 21:58:24 patthoyts Exp $
*/
#include "tkInt.h"
@@ -132,7 +132,7 @@ typedef struct NewGrabWinEvent {
* we generated.
*/
-#define GENERATED_EVENT_MAGIC ((Bool) 0x147321ac)
+#define GENERATED_GRAB_EVENT_MAGIC ((Bool) 0x147321ac)
/*
* Mask that selects any of the state bits corresponding to buttons, plus
@@ -722,7 +722,7 @@ TkPointerEvent(
* serverWinPtr.
*/
- if (eventPtr->xcrossing.send_event != GENERATED_EVENT_MAGIC) {
+ if (eventPtr->xcrossing.send_event != GENERATED_GRAB_EVENT_MAGIC) {
if ((eventPtr->type == LeaveNotify) &&
(winPtr->flags & TK_TOP_HIERARCHY)) {
dispPtr->serverWinPtr = NULL;
@@ -1151,7 +1151,7 @@ MovePointer2(
}
event.xcrossing.serial = LastKnownRequestProcessed(winPtr->display);
- event.xcrossing.send_event = GENERATED_EVENT_MAGIC;
+ event.xcrossing.send_event = GENERATED_GRAB_EVENT_MAGIC;
event.xcrossing.display = winPtr->display;
event.xcrossing.root = RootWindow(winPtr->display, winPtr->screenNum);
event.xcrossing.time = TkCurrentTime(winPtr->dispPtr);