diff --git a/vcl/qt5/QtFrame.cxx b/vcl/qt5/QtFrame.cxx index 984421c0f4e1..96d343e25050 100644 --- a/vcl/qt5/QtFrame.cxx +++ b/vcl/qt5/QtFrame.cxx @@ -667,7 +667,7 @@ void QtFrame::ShowFullScreen(bool bFullScreen, sal_Int32 nScreen) void QtFrame::StartPresentation(bool bStart) { -#if !defined __EMSCRIPTEN__ +#if defined LINUX || defined __sun || defined FREEBSD || defined OPENBSD #if CHECK_QT5_USING_X11 unsigned int nRootWindow(0); std::optional aDisplay;