diff options
author | enen92 <enen92@users.noreply.github.com> | 2018-12-26 09:56:19 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-26 09:56:19 +0000 |
commit | 73cbb274b7bb7558094aa31749579804e385aacc (patch) | |
tree | 4583f74ae947f716a1e590f15d2833eac4011fce | |
parent | cc5fb973fcc2412243eb552ef61d2f9a8a50c80b (diff) | |
parent | 03d6a4ca2542a376275f858106fb45e045335704 (diff) |
Merge pull request #15105 from Memphiz/ticket14773
[osx/WinEventsSDL] - ensure to enable gui rendering once the app gets focus
-rw-r--r-- | xbmc/windowing/osx/WinEventsSDL.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xbmc/windowing/osx/WinEventsSDL.cpp b/xbmc/windowing/osx/WinEventsSDL.cpp index d1b7392cb4..745292814d 100644 --- a/xbmc/windowing/osx/WinEventsSDL.cpp +++ b/xbmc/windowing/osx/WinEventsSDL.cpp @@ -50,6 +50,9 @@ bool CWinEventsSDL::MessagePump() else if (event.active.state & SDL_APPINPUTFOCUS) { g_application.m_AppFocused = event.active.gain != 0; + std::shared_ptr<CAppInboundProtocol> appPort = CServiceBroker::GetAppPort(); + if (appPort) + appPort->SetRenderGUI(event.active.gain != 0); CServiceBroker::GetWinSystem()->NotifyAppFocusChange(g_application.m_AppFocused); } break; |