Don't need to hide the menu bar if we're not on the main display

This commit is contained in:
Sam Lantinga
2009-12-02 07:28:58 +00:00
parent 7b253b6d72
commit 147d40ba98

View File

@@ -255,7 +255,9 @@ Cocoa_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode)
}
/* Hide the menu bar so it doesn't intercept events */
HideMenuBar();
if (CGDisplayIsMain(displaydata->display)) {
HideMenuBar();
}
/* Fade in again (asynchronously) */
if (fade_token != kCGDisplayFadeReservationInvalidToken) {