Mac Windowed mode isn't the same as on PCs
Archives Forums/BlitzMax Bug Reports/Mac Windowed mode isn't the same as on PCs
| ||
As per this thread: http://www.blitzbasic.com/Community/posts.php?topic=74641 there is inconsistent behavior between Mac and PC windowed mode... PC shows a minimise icon and will trigger an APP_SUSPEND event. However, Mac doesn't show a minimise icon. I can added one by modifiying the following line (236) in glgraphics.macos.m: style=NSTitledWindowMask|NSClosableWindowMask to style=NSTitledWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask But it still won't trigger APP_SUSPEND. I can make it trigger suspend/resume by adding this code after windowShouldClose on line 37: -(void) windowDidMiniaturize:(NSNotification *) note { bbSystemEmitEvent( BBEVENT_APPSUSPEND,&bbNullObject,0,0,0,0,&bbNullObject ); } -(void) windowDidDeminiaturize:(NSNotification *) note { bbSystemEmitEvent( BBEVENT_APPRESUME,&bbNullObject,0,0,0,0,&bbNullObject ); } To avoid having to make these changes every time I install a new version of BlitzMax, I'd like to make a request that this code is added to the standard version please. Thanks in advance. |
| ||
By the way, AppSuspended() is not firing any event in Linux. |