Merge pull request #6644 from leoetlino/uicommon-header

UICommon: Fix header
This commit is contained in:
Mat M
2018-04-14 20:25:22 -04:00
committed by GitHub
7 changed files with 11 additions and 15 deletions
+1 -4
View File
@@ -972,10 +972,7 @@ void MainWindow::NetPlayQuit()
void MainWindow::EnableScreenSaver(bool enable)
{
#if defined(HAVE_XRANDR) && HAVE_XRANDR
UICommon::EnableScreenSaver(
static_cast<Display*>(QGuiApplication::platformNativeInterface()->nativeResourceForWindow(
"display", windowHandle())),
winId(), enable);
UICommon::EnableScreenSaver(winId(), enable);
#else
UICommon::EnableScreenSaver(enable);
#endif