Add server support for RRGetScreenResourcesCurrent
This depends on randrproto 1.2.99.1 Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
f710ce269c
commit
fc70839431
|
@ -664,7 +664,7 @@ XEXT_LIB='$(top_builddir)/Xext/libXext.la'
|
||||||
XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
|
XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
|
||||||
|
|
||||||
dnl Core modules for most extensions, et al.
|
dnl Core modules for most extensions, et al.
|
||||||
REQUIRED_MODULES="[randrproto >= 1.2] [renderproto >= 0.9.3] [fixesproto >= 4.0] [damageproto >= 1.1] xcmiscproto [xextproto >= 7.0.3] [xproto >= 7.0.13] [xtrans >= 1.2.2] bigreqsproto resourceproto fontsproto [inputproto >= 1.9.99.6] [kbproto >= 1.0.3]"
|
REQUIRED_MODULES="[randrproto >= 1.2.99.1] [renderproto >= 0.9.3] [fixesproto >= 4.0] [damageproto >= 1.1] xcmiscproto [xextproto >= 7.0.3] [xproto >= 7.0.13] [xtrans >= 1.2.2] bigreqsproto resourceproto fontsproto [inputproto >= 1.9.99.6] [kbproto >= 1.0.3]"
|
||||||
REQUIRED_LIBS="xfont xau fontenc [pixman-1 >= 0.13.2]"
|
REQUIRED_LIBS="xfont xau fontenc [pixman-1 >= 0.13.2]"
|
||||||
|
|
||||||
dnl HAVE_DBUS is true if we actually have the D-Bus library, whereas
|
dnl HAVE_DBUS is true if we actually have the D-Bus library, whereas
|
||||||
|
|
|
@ -387,6 +387,9 @@ ProcRRSetScreenSize (ClientPtr client);
|
||||||
int
|
int
|
||||||
ProcRRGetScreenResources (ClientPtr client);
|
ProcRRGetScreenResources (ClientPtr client);
|
||||||
|
|
||||||
|
int
|
||||||
|
ProcRRGetScreenResourcesCurrent (ClientPtr client);
|
||||||
|
|
||||||
int
|
int
|
||||||
ProcRRSetScreenConfig (ClientPtr client);
|
ProcRRSetScreenConfig (ClientPtr client);
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,8 @@ int (*ProcRandrVector[RRNumberRequests])(ClientPtr) = {
|
||||||
ProcRRGetCrtcGamma, /* 23 */
|
ProcRRGetCrtcGamma, /* 23 */
|
||||||
ProcRRSetCrtcGamma, /* 24 */
|
ProcRRSetCrtcGamma, /* 24 */
|
||||||
/* V1.3 additions */
|
/* V1.3 additions */
|
||||||
ProcRRSetCrtcTransform, /* 25 */
|
ProcRRGetScreenResourcesCurrent, /* 25 */
|
||||||
ProcRRGetCrtcTransform, /* 26 */
|
ProcRRSetCrtcTransform, /* 26 */
|
||||||
|
ProcRRGetCrtcTransform, /* 27 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -314,8 +314,8 @@ ProcRRSetScreenSize (ClientPtr client)
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
ProcRRGetScreenResources (ClientPtr client)
|
rrGetScreenResources(ClientPtr client, Bool query)
|
||||||
{
|
{
|
||||||
REQUEST(xRRGetScreenResourcesReq);
|
REQUEST(xRRGetScreenResourcesReq);
|
||||||
xRRGetScreenResourcesReply rep;
|
xRRGetScreenResourcesReply rep;
|
||||||
|
@ -339,7 +339,7 @@ ProcRRGetScreenResources (ClientPtr client)
|
||||||
pScrPriv = rrGetScrPriv(pScreen);
|
pScrPriv = rrGetScrPriv(pScreen);
|
||||||
rep.pad = 0;
|
rep.pad = 0;
|
||||||
|
|
||||||
if (pScrPriv)
|
if (query && pScrPriv)
|
||||||
if (!RRGetInfo (pScreen))
|
if (!RRGetInfo (pScreen))
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
|
|
||||||
|
@ -463,6 +463,18 @@ ProcRRGetScreenResources (ClientPtr client)
|
||||||
return client->noClientException;
|
return client->noClientException;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
ProcRRGetScreenResources (ClientPtr client)
|
||||||
|
{
|
||||||
|
return rrGetScreenResources(client, TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
ProcRRGetScreenResourcesCurrent (ClientPtr client)
|
||||||
|
{
|
||||||
|
return rrGetScreenResources(client, FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
typedef struct _RR10Data {
|
typedef struct _RR10Data {
|
||||||
RRScreenSizePtr sizes;
|
RRScreenSizePtr sizes;
|
||||||
int nsize;
|
int nsize;
|
||||||
|
|
|
@ -415,7 +415,8 @@ int (*SProcRandrVector[RRNumberRequests])(ClientPtr) = {
|
||||||
SProcRRGetCrtcGamma, /* 23 */
|
SProcRRGetCrtcGamma, /* 23 */
|
||||||
SProcRRSetCrtcGamma, /* 24 */
|
SProcRRSetCrtcGamma, /* 24 */
|
||||||
/* V1.3 additions */
|
/* V1.3 additions */
|
||||||
SProcRRSetCrtcTransform, /* 25 */
|
SProcRRGetScreenResources, /* 25 GetScreenResourcesCurrent */
|
||||||
SProcRRGetCrtcTransform, /* 26 */
|
SProcRRSetCrtcTransform, /* 26 */
|
||||||
|
SProcRRGetCrtcTransform, /* 27 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue