diff options
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsglcontext.h | 3 | ||||
-rw-r--r-- | src/plugins/platforms/xcb/qxcbconnection.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/qwindowsglcontext.h b/src/plugins/platforms/windows/qwindowsglcontext.h index 23d2fd0d09..dfaa428520 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.h +++ b/src/plugins/platforms/windows/qwindowsglcontext.h @@ -48,6 +48,7 @@ #include <vector> QT_BEGIN_NAMESPACE +#ifndef QT_NO_OPENGL class QDebug; @@ -227,7 +228,7 @@ private: GLenum (APIENTRY * m_getGraphicsResetStatus)(); bool m_lost; }; - +#endif QT_END_NAMESPACE #endif // QWINDOWSGLCONTEXT_H diff --git a/src/plugins/platforms/xcb/qxcbconnection.cpp b/src/plugins/platforms/xcb/qxcbconnection.cpp index 3444b21654..8c5f8cae08 100644 --- a/src/plugins/platforms/xcb/qxcbconnection.cpp +++ b/src/plugins/platforms/xcb/qxcbconnection.cpp @@ -605,7 +605,8 @@ QXcbConnection::QXcbConnection(QXcbNativeInterface *nativeInterface, bool canGra initializeXRender(); #if defined(XCB_USE_XINPUT2) - initializeXInput2(); + if (!qEnvironmentVariableIsSet("QT_XCB_NO_XI2")) + initializeXInput2(); #endif initializeXShape(); initializeXKB(); |