summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora_kovalenko <a_kovalenko>2003-11-25 08:45:30 (GMT)
committera_kovalenko <a_kovalenko>2003-11-25 08:45:30 (GMT)
commitcd184fa0a81211827cd0bdfe39ad4adac7a859fb (patch)
tree62a3973220d0bd4733f0a954576765166786ec33
parent5e9fda2731c738809e11548e84b8c58070f4244f (diff)
downloadtk-cd184fa0a81211827cd0bdfe39ad4adac7a859fb.zip
tk-cd184fa0a81211827cd0bdfe39ad4adac7a859fb.tar.gz
tk-cd184fa0a81211827cd0bdfe39ad4adac7a859fb.tar.bz2
Corrected targetWinPtr check, now if winPtr==0 and targetWinPtr!=0 then
the event is not ignored any more
-rw-r--r--ChangeLog6
-rw-r--r--generic/tkPointer.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 238519e..4859d8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-11-25 Anton Kovalenko <a_kovalenko@users.sourceforge.net>
+
+ * generic/tkPointer.c (Tk_UpdatePointer): corrected targetWinPtr
+ check (line 369) so any pointer event with winPtr==0
+ is really redirected to the grab or restrict window (if any).
+
2003-11-21 Vince Darley <vincentdarley@users.sourceforge.net>
* generic/tkTextDisp.c:
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);