Permalink
Browse files

X11: lock graphics context in NotifyXRREvent

  • Loading branch information...
1 parent e1298b1 commit 0ad81d89541cc2dd6467cb953fc6d3709b7d012d @FernetMenta committed Sep 15, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/windowing/X11/WinSystemX11.cpp
@@ -666,6 +666,8 @@ void CWinSystemX11::NotifyXRREvent()
CLog::Log(LOGDEBUG, "%s - notify display reset event", __FUNCTION__);
m_windowDirty = true;
+ CSingleLock lock(g_graphicsContext);
+
if (!g_xrandr.Query(true))
{
CLog::Log(LOGERROR, "WinSystemX11::RefreshWindow - failed to query xrandr");

0 comments on commit 0ad81d8

Please sign in to comment.