ref: 1eabbcb45367ba53120e04968ed2efeeb6f5acd6
parent: 7eef5364b88b5884310d053a614c10bcc7cf0ded
author: Just van Rossum <[email protected]>
date: Sun Mar 5 11:09:21 EST 2000
properly behave in case the console window became active
--- a/demos/graph/mac/grmac.c
+++ b/demos/graph/mac/grmac.c
@@ -198,6 +198,7 @@
case updateEvt:
if ( theWindow && (WindowPtr)mac_event.message == theWindow )
{
+ SetPort( theWindow );
BeginUpdate( theWindow );
refresh_rectangle( surface,
0, 0,
@@ -230,6 +231,10 @@
*grevent = our_grevent;
return;
}
+ }
+ else if (part == inContent)
+ {
+ SelectWindow( theWindow );
}
}
else