Revert "Xi: disable XI for clients < XI 2.0"

Turns out some programs don't like this change. gnome-settings-daemon crashes
hard if you tell it that XI doesn't exist. So, tell them we have XI, but leave
the other change (the one that pretends no devices are available).

This reverts commit 8973a3f798.
This commit is contained in:
Peter Hutterer 2008-04-26 19:37:57 +09:30
parent 7447a30fb2
commit 87071b604c

View File

@ -122,10 +122,7 @@ ProcXGetExtensionVersion(ClientPtr client)
rep.RepType = X_GetExtensionVersion;
rep.length = 0;
rep.sequenceNumber = client->sequence;
if (!pXIClient->major_version < XI_2_Major) /* sorry, no XI 1.x anymore. */
rep.present = FALSE;
else
rep.present = TRUE;
rep.present = TRUE;
rep.major_version = AllExtensionVersions[IReqCode - 128].major_version;
rep.minor_version = AllExtensionVersions[IReqCode - 128].minor_version;