void CWinSystemX11::NotifyXRREvent() { CLog::Log(LOGDEBUG, "%s - notify display reset event", __FUNCTION__); CSingleLock lock(g_graphicsContext); if (!g_xrandr.Query(true)) { CLog::Log(LOGERROR, "WinSystemX11::RefreshWindow - failed to query xrandr"); return; } // if external event update resolutions if (!m_bIsInternalXrr) { UpdateResolutions(); } RecreateWindow(); }
bool CWinSystemBase::InitWindowSystem() { UpdateResolutions(); CDisplaySettings::GetInstance().ApplyCalibrations(); return true; }