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)
commit1821e19bc72152b13ef6a7789b22bf239d713846 (patch)
tree4c81cd56ef843501912d782732a5165b523d2f02 /generic/tkInt.h
parenta90f19807e0282b4c15f10bd77b96d1c281b22d3 (diff)
downloadtk-1821e19bc72152b13ef6a7789b22bf239d713846.zip
tk-1821e19bc72152b13ef6a7789b22bf239d713846.tar.gz
tk-1821e19bc72152b13ef6a7789b22bf239d713846.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;