diff options
author | dgp <dgp@noemail.net> | 2008-04-17 14:52:21 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2008-04-17 14:52:21 (GMT) |
commit | bbbb111146c1ae67eff9ceaefc6f4205c1e6a94b (patch) | |
tree | 33cc8bccf473e94814e504a0050d0aacc52ba41e /generic/tkCanvas.c | |
parent | eed828d646a79d725093ab132c013205f1c58943 (diff) | |
download | tk-bbbb111146c1ae67eff9ceaefc6f4205c1e6a94b.zip tk-bbbb111146c1ae67eff9ceaefc6f4205c1e6a94b.tar.gz tk-bbbb111146c1ae67eff9ceaefc6f4205c1e6a94b.tar.bz2 |
* generic/tkCanvas.c: Fix logic that determines when canvas item
<Enter> event should fire. Thanks to Sebastian Wangnick. [Bug 1327482]
FossilOrigin-Name: df016edf1ebf486a3661bf77742e70535696e582
Diffstat (limited to 'generic/tkCanvas.c')
-rw-r--r-- | generic/tkCanvas.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tkCanvas.c b/generic/tkCanvas.c index 85c37c9..5872d55 100644 --- a/generic/tkCanvas.c +++ b/generic/tkCanvas.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCanvas.c,v 1.46 2007/12/13 15:24:13 dgp Exp $ + * RCS: @(#) $Id: tkCanvas.c,v 1.46.2.1 2008/04/17 14:52:24 dgp Exp $ */ /* #define USE_OLD_TAG_SEARCH 1 */ @@ -4483,9 +4483,6 @@ PickCurrentItem( buttonDown = canvasPtr->state & (Button1Mask|Button2Mask|Button3Mask|Button4Mask|Button5Mask); - if (!buttonDown) { - canvasPtr->flags &= ~LEFT_GRABBED_ITEM; - } /* * Save information about this event in the canvas. The event in the @@ -4560,6 +4557,10 @@ PickCurrentItem( return; } + if (!buttonDown) { + canvasPtr->flags &= ~LEFT_GRABBED_ITEM; + } + /* * Simulate a LeaveNotify event on the previous current item and an * EnterNotify event on the new current item. Remove the "current" tag |