src/video/uikit/SDL_uikitmessagebox.m
changeset 11983 3a50eb90e4b2
parent 11841 fe303e78ea49
child 12503 806492103856
equal deleted inserted replaced
11982:7babfecee045 11983:3a50eb90e4b2
   107 
   107 
   108     if (alertwindow) {
   108     if (alertwindow) {
   109         alertwindow.hidden = YES;
   109         alertwindow.hidden = YES;
   110     }
   110     }
   111 
   111 
       
   112 #if !TARGET_OS_TV
   112     /* Force the main SDL window to re-evaluate home indicator state */
   113     /* Force the main SDL window to re-evaluate home indicator state */
   113     SDL_Window *focus = SDL_GetFocusWindow();
   114     SDL_Window *focus = SDL_GetFocusWindow();
   114     if (focus) {
   115     if (focus) {
   115         SDL_WindowData *data = (__bridge SDL_WindowData *) focus->driverdata;
   116         SDL_WindowData *data = (__bridge SDL_WindowData *) focus->driverdata;
   116         if (data != nil) {
   117         if (data != nil) {
   118                 [data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfHomeIndicatorAutoHidden) withObject:nil waitUntilDone:NO];
   119                 [data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfHomeIndicatorAutoHidden) withObject:nil waitUntilDone:NO];
   119                 [data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfScreenEdgesDeferringSystemGestures) withObject:nil waitUntilDone:NO];
   120                 [data.viewcontroller performSelectorOnMainThread:@selector(setNeedsUpdateOfScreenEdgesDeferringSystemGestures) withObject:nil waitUntilDone:NO];
   120             }
   121             }
   121         }
   122         }
   122     }
   123     }
       
   124 #endif /* !TARGET_OS_TV */
   123 
   125 
   124     *buttonid = messageboxdata->buttons[clickedindex].buttonid;
   126     *buttonid = messageboxdata->buttons[clickedindex].buttonid;
   125     return YES;
   127     return YES;
   126 #else
   128 #else
   127     return NO;
   129     return NO;