diff options
author | wolfsuit <wolfsuit> | 2005-03-12 00:49:27 (GMT) |
---|---|---|
committer | wolfsuit <wolfsuit> | 2005-03-12 00:49:27 (GMT) |
commit | 5a6d13273b98767ce73bce25863a3e6189daaa74 (patch) | |
tree | a653deaea813d558fc1961f902ee8e7ff6518cfb /macosx/tkMacOSXWindowEvent.c | |
parent | c6bbd37ba31a119fdbd82c318f023153f1764065 (diff) | |
download | tk-5a6d13273b98767ce73bce25863a3e6189daaa74.zip tk-5a6d13273b98767ce73bce25863a3e6189daaa74.tar.gz tk-5a6d13273b98767ce73bce25863a3e6189daaa74.tar.bz2 |
Fix for 1124237 and the mysterious "sometimes buttons don't draw" bug.
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index f718d08..dbb94cc 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -75,8 +75,6 @@ static RgnHandle visRgn; static int GenerateUpdateEvent( Window window); static void GenerateUpdates( RgnHandle updateRgn, TkWindow *winPtr); static int GenerateActivateEvents( Window window, int activeFlag); -static int GenerateFocusEvent( Window window, int activeFlag); - /* @@ -172,11 +170,11 @@ TkMacOSXProcessWindowEvent( switch (eventPtr->eKind) { case kEventWindowActivated: eventFound |= GenerateActivateEvents(window, 1); - eventFound |= GenerateFocusEvent(window, 1); + eventFound |= TkMacOSXGenerateFocusEvent(window, 1); break; case kEventWindowDeactivated: eventFound |= GenerateActivateEvents(window, 0); - eventFound |= GenerateFocusEvent(window, 0); + eventFound |= TkMacOSXGenerateFocusEvent(window, 0); break; case kEventWindowUpdate: if (GenerateUpdateEvent(window)) { @@ -382,7 +380,7 @@ GenerateActivateEvents( /* *---------------------------------------------------------------------- * - * GenerateFocusEvent -- + * TkMacOSXGenerateFocusEvent -- * * Given a Macintosh window activate event this function generates all the * X Focus events needed by Tk. @@ -397,7 +395,7 @@ GenerateActivateEvents( */ int -GenerateFocusEvent( +TkMacOSXGenerateFocusEvent( Window window, /* Root X window for event. */ int activeFlag ) { |