aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbmc/windowing/osx/WinSystemOSX.mm10
1 files changed, 6 insertions, 4 deletions
diff --git a/xbmc/windowing/osx/WinSystemOSX.mm b/xbmc/windowing/osx/WinSystemOSX.mm
index 6c5cb05a32..ba2e327cd2 100644
--- a/xbmc/windowing/osx/WinSystemOSX.mm
+++ b/xbmc/windowing/osx/WinSystemOSX.mm
@@ -1244,10 +1244,12 @@ void CWinSystemOSX::OnMove(int x, int y)
oldRefreshRate = m_refreshRate;
// send a message so that videoresolution (and refreshrate) is changed
- NSWindow* win = m_appWindow;
- NSRect frame = win.contentView.frame;
- CServiceBroker::GetAppMessenger()->PostMsg(TMSG_VIDEORESIZE, frame.size.width,
- frame.size.height);
+ dispatch_sync(dispatch_get_main_queue(), ^{
+ NSWindow* win = m_appWindow;
+ NSRect frame = win.contentView.frame;
+ CServiceBroker::GetAppMessenger()->PostMsg(TMSG_VIDEORESIZE, frame.size.width,
+ frame.size.height);
+ });
}
// store window position in window mode
if (!m_bFullScreen)