diff options
author | a_kovalenko <a_kovalenko> | 2003-11-25 08:45:30 (GMT) |
---|---|---|
committer | a_kovalenko <a_kovalenko> | 2003-11-25 08:45:30 (GMT) |
commit | b8e46586031541ebde2a3bccf5471711b0346bbc (patch) | |
tree | 62a3973220d0bd4733f0a954576765166786ec33 /generic | |
parent | 8f1c54c65898c7064a39370265a7abc5ba8b4cd3 (diff) | |
download | tk-b8e46586031541ebde2a3bccf5471711b0346bbc.zip tk-b8e46586031541ebde2a3bccf5471711b0346bbc.tar.gz tk-b8e46586031541ebde2a3bccf5471711b0346bbc.tar.bz2 |
Corrected targetWinPtr check, now if winPtr==0 and targetWinPtr!=0 then
the event is not ignored any more
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkPointer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkPointer.c b/generic/tkPointer.c index 06e54ff..2c686d6 100644 --- a/generic/tkPointer.c +++ b/generic/tkPointer.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkPointer.c,v 1.7 2002/08/31 06:12:25 das Exp $ + * RCS: @(#) $Id: tkPointer.c,v 1.8 2003/11/25 08:45:30 a_kovalenko Exp $ */ #include "tkInt.h" @@ -366,7 +366,7 @@ Tk_UpdatePointer(tkwin, x, y, state) * If we still have a target window, send the event. */ - if (winPtr != NULL) { + if (targetWinPtr != NULL) { InitializeEvent(&event, targetWinPtr, type, x, y, tsdPtr->lastState, b); Tk_QueueWindowEvent(&event, TCL_QUEUE_TAIL); |