mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 01:34:11 +00:00
Xi: helper for private structure retrieval
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
c349470433
commit
b5210be9eb
@@ -204,7 +204,6 @@ test_XIQueryVersion_multiple(void)
|
||||
{
|
||||
xXIQueryVersionReq request;
|
||||
ClientRec client;
|
||||
XIClientPtr pXIClient;
|
||||
int rc;
|
||||
|
||||
init_simple();
|
||||
@@ -261,7 +260,7 @@ test_XIQueryVersion_multiple(void)
|
||||
assert(rc == Success);
|
||||
|
||||
/* real version is changed, too! */
|
||||
pXIClient = dixLookupPrivate(&client.devPrivates, XIClientPrivateKey);
|
||||
XIClientPtr pXIClient = XIClientPriv(&client);
|
||||
assert(pXIClient->minor_version == 3);
|
||||
|
||||
/* client tries to set lower version, no change */
|
||||
@@ -286,7 +285,7 @@ test_XIQueryVersion_multiple(void)
|
||||
assert(rc == Success);
|
||||
|
||||
/* but real client version must not be lowered */
|
||||
pXIClient = dixLookupPrivate(&client.devPrivates, XIClientPrivateKey);
|
||||
pXIClient = XIClientPriv(&client);
|
||||
assert(pXIClient->minor_version == 3);
|
||||
|
||||
request.major_version = 2;
|
||||
|
||||
Reference in New Issue
Block a user