summaryrefslogtreecommitdiffstats
path: root/generic/tkInt.h
diff options
context:
space:
mode:
authormdejong <mdejong>2003-02-18 06:22:44 (GMT)
committermdejong <mdejong>2003-02-18 06:22:44 (GMT)
commitf0c7dc3763eb5d0abf9f3edbcffc46fa2564c3f3 (patch)
tree4c81cd56ef843501912d782732a5165b523d2f02 /generic/tkInt.h
parentaa37afb5ecc216b3b2709dbd94d7fd86de60cda8 (diff)
downloadtk-f0c7dc3763eb5d0abf9f3edbcffc46fa2564c3f3.zip
tk-f0c7dc3763eb5d0abf9f3edbcffc46fa2564c3f3.tar.gz
tk-f0c7dc3763eb5d0abf9f3edbcffc46fa2564c3f3.tar.bz2
* generic/tkEvent.c (Tk_HandleEvent): Fixup button
press state saving code, it was incorrectly converting normal motion events into button press and motion events in some cases. * generic/tkInt.h: Add mouseButtonWindow member to the TkDisplay structure. * tests/event.test: Add test case for faulty button motion logic.
Diffstat (limited to 'generic/tkInt.h')
-rw-r--r--generic/tkInt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h
index cd40d80..2723d41 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -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: tkInt.h,v 1.55 2003/01/28 20:39:15 jenglish Exp $
+ * RCS: $Id: tkInt.h,v 1.56 2003/02/18 06:22:44 mdejong Exp $
*/
#ifndef _TKINT
@@ -493,6 +493,8 @@ typedef struct TkDisplay {
*/
int mouseButtonState; /* current mouse button state for this
* display */
+ Window mouseButtonWindow; /* Window the button state was set in,
+ * added in Tk 8.4. */
Window warpWindow;
int warpX;
int warpY;