您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

libXext-1.1-XAllocID.patch 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 956fd30e1046e5779ac0b6c07ec4f0e87250869a Mon Sep 17 00:00:00 2001
  2. From: Jamey Sharp <jamey@minilop.net>
  3. Date: Wed, 7 Oct 2009 19:31:21 -0700
  4. Subject: [PATCH] XAllocID must only be called with the Display lock held.
  5. This patch makes XShmAttach follow the same XID allocation pattern used in
  6. other stubs, such as XShmCreatePixmap.
  7. Reported-by: <fdsteve@ihug.co.nz>
  8. Signed-off-by: Jamey Sharp <jamey@minilop.net>
  9. ---
  10. src/XShm.c | 3 +--
  11. 1 files changed, 1 insertions(+), 2 deletions(-)
  12. diff --git a/src/XShm.c b/src/XShm.c
  13. index 922b4cb..38efa9f 100644
  14. --- a/src/XShm.c
  15. +++ b/src/XShm.c
  16. @@ -235,12 +235,11 @@ Status XShmAttach(Display *dpy, XShmSegmentInfo *shminfo)
  17. ShmCheckExtension (dpy, info, 0);
  18. - shminfo->shmseg = XAllocID(dpy);
  19. LockDisplay(dpy);
  20. GetReq(ShmAttach, req);
  21. req->reqType = info->codes->major_opcode;
  22. req->shmReqType = X_ShmAttach;
  23. - req->shmseg = shminfo->shmseg;
  24. + req->shmseg = shminfo->shmseg = XAllocID(dpy);
  25. req->shmid = shminfo->shmid;
  26. req->readOnly = shminfo->readOnly ? xTrue : xFalse;
  27. UnlockDisplay(dpy);
  28. --
  29. 1.6.5.2