Revert fix for T48901: Use of XIWarpPointer
[blender.git] / intern / ghost / intern / GHOST_WindowX11.cpp
index ee8218b4827f354b6721cb439858904ba6c583e1..7e5c77618dd09612a9e08d8581fdcfd4bb1fff31 100644 (file)
@@ -1529,7 +1529,7 @@ setWindowCursorGrab(
                         * blender gets can be outside the screen causing menus not to show
                         * properly unless the user moves the mouse */
 
-#ifdef WITH_X11_XINPUT
+#if defined(WITH_X11_XINPUT) && defined(USE_X11_XINPUT_WARP)
                        if ((m_system->m_xinput_version.present) &&
                            (m_system->m_xinput_version.major_version >= 2))
                        {