mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-05 22:46:06 +00:00
dix: Pull client-is-local flag up to the ClientRec
Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
3f7bc22263
commit
ff8e3ad807
14 changed files with 21 additions and 32 deletions
|
|
@ -2095,7 +2095,7 @@ ProcXDGADispatch(ClientPtr client)
|
|||
{
|
||||
REQUEST(xReq);
|
||||
|
||||
if (!LocalClient(client))
|
||||
if (!client->local)
|
||||
return DGAErrorBase + XF86DGAClientNotLocal;
|
||||
|
||||
#ifdef DGA_REQ_DEBUG
|
||||
|
|
|
|||
|
|
@ -1590,7 +1590,7 @@ ProcXF86VidModeGetPermissions(ClientPtr client)
|
|||
return BadValue;
|
||||
|
||||
if (xf86GetVidModeEnabled() &&
|
||||
(xf86GetVidModeAllowNonLocal() || LocalClient(client))) {
|
||||
(xf86GetVidModeAllowNonLocal() || client->local)) {
|
||||
rep.permissions |= XF86VM_WRITE_PERMISSION;
|
||||
}
|
||||
if (client->swapped) {
|
||||
|
|
@ -1659,7 +1659,7 @@ ProcXF86VidModeDispatch(ClientPtr client)
|
|||
default:
|
||||
if (!xf86GetVidModeEnabled())
|
||||
return VidModeErrorBase + XF86VidModeExtensionDisabled;
|
||||
if (xf86GetVidModeAllowNonLocal() || LocalClient(client)) {
|
||||
if (xf86GetVidModeAllowNonLocal() || client->local) {
|
||||
switch (stuff->data) {
|
||||
case X_XF86VidModeAddModeLine:
|
||||
return ProcXF86VidModeAddModeLine(client);
|
||||
|
|
@ -2083,7 +2083,7 @@ SProcXF86VidModeDispatch(ClientPtr client)
|
|||
default:
|
||||
if (!xf86GetVidModeEnabled())
|
||||
return VidModeErrorBase + XF86VidModeExtensionDisabled;
|
||||
if (xf86GetVidModeAllowNonLocal() || LocalClient(client)) {
|
||||
if (xf86GetVidModeAllowNonLocal() || client->local) {
|
||||
switch (stuff->data) {
|
||||
case X_XF86VidModeAddModeLine:
|
||||
return SProcXF86VidModeAddModeLine(client);
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ ProcXF86DRIQueryDirectRenderingCapable(register ClientPtr client)
|
|||
return BadValue;
|
||||
}
|
||||
|
||||
if (!LocalClient(client) || client->swapped)
|
||||
if (!client->local || client->swapped)
|
||||
isCapable = 0;
|
||||
|
||||
rep = (xXF86DRIQueryDirectRenderingCapableReply) {
|
||||
|
|
@ -528,7 +528,7 @@ ProcXF86DRIDispatch(register ClientPtr client)
|
|||
return ProcXF86DRIQueryDirectRenderingCapable(client);
|
||||
}
|
||||
|
||||
if (!LocalClient(client))
|
||||
if (!client->local)
|
||||
return DRIErrorBase + XF86DRIClientNotLocal;
|
||||
|
||||
switch (stuff->data) {
|
||||
|
|
|
|||
|
|
@ -588,7 +588,7 @@ ProcDRI2Dispatch(ClientPtr client)
|
|||
return ProcDRI2QueryVersion(client);
|
||||
}
|
||||
|
||||
if (!LocalClient(client))
|
||||
if (!client->local)
|
||||
return BadRequest;
|
||||
|
||||
switch (stuff->data) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue