Skip to content

Commit 991a623

Browse files
committed
[PR #1183] render: XineramaRenderChangePicture(): don't patch request buffer anymore
PR: #1183
1 parent 4647e9d commit 991a623

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

render/render.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -546,13 +546,13 @@ SingleRenderCreatePicture(ClientPtr client, xRenderCreatePictureReq *stuff)
546546
}
547547

548548
static int
549-
SingleRenderChangePicture(ClientPtr client, xRenderChangePictureReq *stuff)
549+
SingleRenderChangePicture(ClientPtr client, xRenderChangePictureReq *stuff, Picture pictID)
550550
{
551551
PicturePtr pPicture;
552552

553553
int len;
554554

555-
VERIFY_PICTURE(pPicture, stuff->picture, client, DixSetAttrAccess);
555+
VERIFY_PICTURE(pPicture, pictID, client, DixSetAttrAccess);
556556

557557
len = client->req_len - bytes_to_int32(sizeof(xRenderChangePictureReq));
558558
if (Ones(stuff->mask) != len)
@@ -2348,16 +2348,16 @@ PanoramiXRenderCreatePicture(ClientPtr client, xRenderCreatePictureReq *stuff)
23482348
}
23492349

23502350
static int
2351-
PanoramiXRenderChangePicture(ClientPtr client, xRenderChangePictureReq *stuff)
2351+
PanoramiXRenderChangePicture(ClientPtr client, xRenderChangePictureReq *stuff, Picture pictID)
23522352
{
23532353
PanoramiXRes *pict;
23542354
int result = Success;
23552355

2356-
VERIFY_XIN_PICTURE(pict, stuff->picture, client, DixWriteAccess);
2356+
VERIFY_XIN_PICTURE(pict, pictID, client, DixWriteAccess);
23572357

23582358
XINERAMA_FOR_EACH_SCREEN_BACKWARD({
23592359
stuff->picture = pict->info[walkScreenIdx].id;
2360-
result = SingleRenderChangePicture(client, stuff);
2360+
result = SingleRenderChangePicture(client, stuff, pict->info[walkScreenIdx].id);
23612361
if (result != Success)
23622362
break;
23632363
});
@@ -3018,10 +3018,10 @@ ProcRenderChangePicture(ClientPtr client)
30183018
}
30193019

30203020
#ifdef XINERAMA
3021-
return (usePanoramiX ? PanoramiXRenderChangePicture(client, stuff)
3022-
: SingleRenderChangePicture(client, stuff));
3021+
return (usePanoramiX ? PanoramiXRenderChangePicture(client, stuff, stuff->picture)
3022+
: SingleRenderChangePicture(client, stuff, stuff->picture));
30233023
#else
3024-
return SingleRenderChangePicture(client, stuff);
3024+
return SingleRenderChangePicture(client, stuff, stuff->picture);
30253025
#endif
30263026
}
30273027

0 commit comments

Comments
 (0)