diff --git a/framelesswindowsmanager.cpp b/framelesswindowsmanager.cpp index 1d8549e..83d6b08 100644 --- a/framelesswindowsmanager.cpp +++ b/framelesswindowsmanager.cpp @@ -50,7 +50,7 @@ void FramelessWindowsManager::addWindow(QWindow *window) // If you encounter with any issues when do the painting through OpenGL, // just comment out the following two lines, they are here to workaround // some strange Windows bugs but to be honest they don't have much to do - // with our custom window frame handling. + // with our custom window frame handling functionality. if (!QCoreApplication::testAttribute(Qt::AA_DontCreateNativeWidgetSiblings)) { QCoreApplication::setAttribute(Qt::AA_DontCreateNativeWidgetSiblings); } @@ -58,6 +58,7 @@ void FramelessWindowsManager::addWindow(QWindow *window) framelessHelperUnix()->removeWindowFrame(window); #else FramelessHelperWin::addFramelessWindow(window); +#ifdef Q_OS_WIN // Work-around Win32 multi-monitor artifacts. QObject::connect(window, &QWindow::screenChanged, window, [window](QScreen *screen){ Q_UNUSED(screen); @@ -71,6 +72,7 @@ void FramelessWindowsManager::addWindow(QWindow *window) Utilities::triggerFrameChange(window->winId()); }); #endif +#endif } void FramelessWindowsManager::setHitTestVisible(QWindow *window, QObject *object, const bool value)