summaryrefslogtreecommitdiffstats
path: root/carbon/tkMacOSXMouseEvent.c
diff options
context:
space:
mode:
authordas <das@noemail.net>2009-06-29 14:35:01 (GMT)
committerdas <das@noemail.net>2009-06-29 14:35:01 (GMT)
commita6401db9ac290e17faaf7897ec75bf07ef5b743f (patch)
tree81b5743d2ff5d45f2ee4992153e4f34949ea8f8a /carbon/tkMacOSXMouseEvent.c
parent26cb1dfcf18ed78319ed485346885111ef5c34ed (diff)
downloadtk-macosx-cocoa-merge.zip
tk-macosx-cocoa-merge.tar.gz
tk-macosx-cocoa-merge.tar.bz2
Merge of TkAqua Cocoa portmacosx-cocoa-merge
FossilOrigin-Name: 05bd0a2cb86bb730d85069b3282e569b6c23d911
Diffstat (limited to 'carbon/tkMacOSXMouseEvent.c')
-rw-r--r--carbon/tkMacOSXMouseEvent.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/carbon/tkMacOSXMouseEvent.c b/carbon/tkMacOSXMouseEvent.c
index 4ef0c82..b9e54f5 100644
--- a/carbon/tkMacOSXMouseEvent.c
+++ b/carbon/tkMacOSXMouseEvent.c
@@ -48,7 +48,7 @@
* permission to use and distribute the software in accordance with the
* terms specified in this license.
*
- * RCS: @(#) $Id: tkMacOSXMouseEvent.c,v 1.1 2009/06/26 01:42:47 das Exp $
+ * RCS: @(#) $Id: tkMacOSXMouseEvent.c,v 1.2 2009/06/29 14:35:01 das Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -342,7 +342,7 @@ TkMacOSXProcessMouseEvent(
}
break;
}
- case inGrow:
+ case inGrow: {
/*
* Generally the content region is the domain of Tk sub-windows.
* However, one exception is the grow region. A button down in this
@@ -350,10 +350,12 @@ TkMacOSXProcessMouseEvent(
* Tk may not get button down events in this area!
*/
- if (TkMacOSXGrowToplevel(medPtr->whichWin, where) == true) {
+ XPoint p = {where.h, where.v};
+ if (TkMacOSXGrowToplevel(medPtr->whichWin, p) == true) {
statusPtr->stopProcessing = 1;
return true;
}
+ }
case inContent:
return GenerateButtonEvent(medPtr);
}