From 2632831349f3fcb8f3b70c4f8cec4d29547bdb1a Mon Sep 17 00:00:00 2001 From: fuzzard Date: Wed, 28 Aug 2019 18:01:11 +1000 Subject: [PATCH] Fix homescreen control when modal windows active Allows us to escape modal windows on the home screen without dropping to atv homescreen. --- xbmc/platform/darwin/tvos/XBMCController.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/xbmc/platform/darwin/tvos/XBMCController.mm b/xbmc/platform/darwin/tvos/XBMCController.mm index 59edc623c2697..558e30c5559bb 100644 --- a/xbmc/platform/darwin/tvos/XBMCController.mm +++ b/xbmc/platform/darwin/tvos/XBMCController.mm @@ -371,6 +371,7 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer shouldReceiveP // a) if at our home view, should return to atv home screen. // b) if not, let it pass to us. if (CServiceBroker::GetGUI()->GetWindowManager().GetActiveWindow() == WINDOW_HOME && + !CServiceBroker::GetGUI()->GetWindowManager().HasVisibleModalDialog() && !g_application.GetAppPlayer().IsPlaying()) handled = NO; break;