cocoa: Toggle the fullscreen menu item to 'leave' when entering a fullscreen space
Only return 'NO' during the menu item validation if the window is fullscreen and not in a fullscreen space.
This commit is contained in:
@@ -108,7 +108,10 @@
|
|||||||
SDL_Window *window = [self findSDLWindow];
|
SDL_Window *window = [self findSDLWindow];
|
||||||
if (window == NULL) {
|
if (window == NULL) {
|
||||||
return NO;
|
return NO;
|
||||||
} else if (window->flags & SDL_WINDOW_FULLSCREEN) {
|
}
|
||||||
|
|
||||||
|
SDL_CocoaWindowData *data = (__bridge SDL_CocoaWindowData *)window->internal;
|
||||||
|
if (window->flags & SDL_WINDOW_FULLSCREEN && ![data.listener isInFullscreenSpace]) {
|
||||||
return NO;
|
return NO;
|
||||||
} else if ((window->flags & SDL_WINDOW_RESIZABLE) == 0) {
|
} else if ((window->flags & SDL_WINDOW_RESIZABLE) == 0) {
|
||||||
return NO;
|
return NO;
|
||||||
|
|||||||
Reference in New Issue
Block a user