mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-31 02:50:00 +00:00
os: move AllowByteSwappedClients setting into DIX
Adding new source and header that's going to host all DIX settings (set via cmdline or xf86 config file) in the future. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
5501c60f1b
commit
5532917d76
8 changed files with 49 additions and 8 deletions
|
|
@ -117,6 +117,7 @@ Equipment Corporation.
|
|||
#include "dix/screensaver_priv.h"
|
||||
#include "dix/selection_priv.h"
|
||||
#include "dix/server_priv.h"
|
||||
#include "dix/settings_priv.h"
|
||||
#include "dix/window_priv.h"
|
||||
#include "include/resource.h"
|
||||
#include "miext/extinit_priv.h"
|
||||
|
|
@ -3906,7 +3907,7 @@ ProcEstablishConnection(ClientPtr client)
|
|||
|
||||
prefix = (xConnClientPrefix *) ((char *) stuff + sz_xReq);
|
||||
|
||||
if (client->swapped && !AllowByteSwappedClients) {
|
||||
if (client->swapped && !dixSettingAllowByteSwappedClients) {
|
||||
reason = "Prohibited client endianess, see the Xserver man page ";
|
||||
} else if ((client->req_len << 2) != sz_xReq + sz_xConnClientPrefix +
|
||||
pad_to_int32(prefix->nbytesAuthProto) +
|
||||
|
|
|
|||
Loading…
Reference in a new issue