mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
input: define server-supported protocol versions in one single file.
include/protocol-versions.h specifies each extension version as supported by the server and sent back on the wire to the client. This fixes up several issues with the server potentially reporting a higher version of the protocol if recompiled against a newer version of the protocol. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Rémi Cardona <remi@gentoo.org> Acked-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
0b7c6c728c
commit
55747d256d
32 changed files with 256 additions and 109 deletions
|
|
@ -21,9 +21,7 @@
|
|||
*/
|
||||
|
||||
#include "randrstr.h"
|
||||
|
||||
#define SERVER_RANDR_MAJOR 1
|
||||
#define SERVER_RANDR_MINOR 3
|
||||
#include "protocol-versions.h"
|
||||
|
||||
Bool
|
||||
RRClientKnowsRates (ClientPtr pClient)
|
||||
|
|
@ -50,14 +48,14 @@ ProcRRQueryVersion (ClientPtr client)
|
|||
rep.sequenceNumber = client->sequence;
|
||||
|
||||
if ((stuff->majorVersion * 1000 + stuff->minorVersion) <
|
||||
(SERVER_RANDR_MAJOR * 1000 + SERVER_RANDR_MINOR))
|
||||
(SERVER_RANDR_MAJOR_VERSION * 1000 + SERVER_RANDR_MINOR_VERSION))
|
||||
{
|
||||
rep.majorVersion = stuff->majorVersion;
|
||||
rep.minorVersion = stuff->minorVersion;
|
||||
} else
|
||||
{
|
||||
rep.majorVersion = SERVER_RANDR_MAJOR;
|
||||
rep.minorVersion = SERVER_RANDR_MINOR;
|
||||
rep.majorVersion = SERVER_RANDR_MAJOR_VERSION;
|
||||
rep.minorVersion = SERVER_RANDR_MINOR_VERSION;
|
||||
}
|
||||
|
||||
if (client->swapped) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue