summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authorwolfsuit <wolfsuit>2003-02-19 19:27:43 (GMT)
committerwolfsuit <wolfsuit>2003-02-19 19:27:43 (GMT)
commite891595e16225fe441b40805b6bc3f1e9ff7cc75 (patch)
treee88ef97ca29843dc17db985018abfbbb170e7a5d /macosx/tkMacOSXWindowEvent.c
parent6e2cd243ccc9bd454ae118549066ad2669c00160 (diff)
downloadtk-e891595e16225fe441b40805b6bc3f1e9ff7cc75.zip
tk-e891595e16225fe441b40805b6bc3f1e9ff7cc75.tar.gz
tk-e891595e16225fe441b40805b6bc3f1e9ff7cc75.tar.bz2
This submission contains a slightly reworked & cleaned up version of
two parts of the patches in Patch Tracker #622582 - new-evthdlng.2003-02-12.diff and basic-keyboard.2003-02-10.diff. The second part puts translation of MacOS X keycodes to characters on a better footing. The first part relaxs Tk's policy of consuming all events unless it can see they go to windows it didn't create. This change gets the little traffic lights working, and should make things like QuickTimeTcl easier to implement.
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r--macosx/tkMacOSXWindowEvent.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index d21d1f1..af3619b 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -101,7 +101,6 @@ TkMacOSXProcessApplicationEvent(
TkMacOSXEvent *eventPtr,
MacEventStatus *statusPtr)
{
- statusPtr->handledByTk = 1;
switch (eventPtr->eKind) {
case kEventAppActivated:
tkMacOSXAppInFront = true;
@@ -155,11 +154,9 @@ TkMacOSXProcessWindowEvent(
case kEventWindowUpdate:
break;
default:
- statusPtr->handledByTk = 1;
return 0;
break;
}
- statusPtr->handledByTk = 1;
status = GetEventParameter(eventPtr->eventRef,
kEventParamDirectObject,
typeWindowRef, NULL,
@@ -184,8 +181,6 @@ TkMacOSXProcessWindowEvent(
case kEventWindowUpdate:
if (GenerateUpdateEvent(window)) {
eventFound = true;
- } else {
- statusPtr->handledByTk = 0;
}
break;
}
@@ -690,4 +685,4 @@ int
Tk_MacOSXIsAppInFront (void)
{
return tkMacOSXAppInFront;
-} \ No newline at end of file
+}