File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -261,11 +261,10 @@ - (void)focusSomeWindow:(NSNotification *)aNotification
261261 return ;
262262 }
263263
264+ // Restore any fullscreen window
264265 device = SDL_GetVideoDevice ();
265266 if (device && device->windows ) {
266- SDL_Window *window = device->windows ;
267- int i;
268- for (i = 0 ; i < device->num_displays ; ++i) {
267+ for (int i = 0 ; i < device->num_displays ; ++i) {
269268 SDL_Window *fullscreen_window = device->displays [i]->fullscreen_window ;
270269 if (fullscreen_window) {
271270 if (fullscreen_window->flags & SDL_WINDOW_MINIMIZED) {
@@ -274,12 +273,6 @@ - (void)focusSomeWindow:(NSNotification *)aNotification
274273 return ;
275274 }
276275 }
277-
278- if (window->flags & SDL_WINDOW_MINIMIZED) {
279- SDL_RestoreWindow (window);
280- } else {
281- SDL_RaiseWindow (window);
282- }
283276 }
284277}
285278
@@ -370,9 +363,9 @@ - (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app
370363
371364- (IBAction )menu : (id )sender
372365{
373- SDL_TrayEntry *entry = [[sender representedObject ] pointerValue ];
366+ SDL_TrayEntry *entry = [[sender representedObject ] pointerValue ];
374367
375- SDL_ClickTrayEntry (entry);
368+ SDL_ClickTrayEntry (entry);
376369}
377370
378371@end
You can’t perform that action at this time.
0 commit comments