757
757
PicturePtr pPicture;
758
758
RegionPtr pRegion;
759
759
ScreenPtr pScreen;
761
760
REQUEST(xXFixesSetPictureClipRegionReq);
763
762
REQUEST_SIZE_MATCH (xXFixesSetPictureClipRegionReq);
764
763
VERIFY_PICTURE(pPicture, stuff->picture, client, DixSetAttrAccess);
765
764
pScreen = pPicture->pDrawable->pScreen;
766
ps = GetPictureScreen (pScreen);
767
765
VERIFY_REGION_OR_NONE(pRegion, stuff->region, client, DixReadAccess);
769
767
return SetPictureClipRegion (pPicture, stuff->xOrigin, stuff->yOrigin,
842
840
return (*ProcXFixesVector[stuff->xfixesReqType]) (client);
844
#include "panoramiX.h"
845
#include "panoramiXsrv.h"
848
PanoramiXFixesSetGCClipRegion (ClientPtr client)
850
REQUEST(xXFixesSetGCClipRegionReq);
851
int result = Success, j;
853
REQUEST_SIZE_MATCH(xXFixesSetGCClipRegionReq);
855
if ((result = dixLookupResourceByType((void **)&gc, stuff->gc, XRT_GC,
856
client, DixWriteAccess))) {
857
client->errorValue = stuff->gc;
861
FOR_NSCREENS_BACKWARD(j) {
862
stuff->gc = gc->info[j].id;
863
result = (*PanoramiXSaveXFixesVector[X_XFixesSetGCClipRegion]) (client);
864
if(result != Success) break;
871
PanoramiXFixesSetWindowShapeRegion (ClientPtr client)
873
int result = Success, j;
875
REQUEST(xXFixesSetWindowShapeRegionReq);
877
REQUEST_SIZE_MATCH(xXFixesSetWindowShapeRegionReq);
879
if ((result = dixLookupResourceByType((void **)&win, stuff->dest,
882
client->errorValue = stuff->dest;
886
FOR_NSCREENS_FORWARD(j) {
887
stuff->dest = win->info[j].id;
888
result = (*PanoramiXSaveXFixesVector[X_XFixesSetWindowShapeRegion]) (client);
889
if(result != Success) break;
896
PanoramiXFixesSetPictureClipRegion (ClientPtr client)
898
REQUEST(xXFixesSetPictureClipRegionReq);
899
int result = Success, j;
902
REQUEST_SIZE_MATCH (xXFixesSetPictureClipRegionReq);
904
if ((result = dixLookupResourceByType((void **)&pict, stuff->picture,
907
client->errorValue = stuff->picture;
911
FOR_NSCREENS_BACKWARD(j) {
912
stuff->picture = pict->info[j].id;
913
result = (*PanoramiXSaveXFixesVector[X_XFixesSetPictureClipRegion]) (client);
914
if(result != Success) break;