Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2
xorg-x11-libXext
libXext-commit-956fd30.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libXext-commit-956fd30.diff of Package xorg-x11-libXext
commit 956fd30e1046e5779ac0b6c07ec4f0e87250869a Author: Jamey Sharp <jamey@minilop.net> Date: Wed Oct 7 19:31:21 2009 -0700 XAllocID must only be called with the Display lock held. This patch makes XShmAttach follow the same XID allocation pattern used in other stubs, such as XShmCreatePixmap. Reported-by: <fdsteve@ihug.co.nz> Signed-off-by: Jamey Sharp <jamey@minilop.net> diff --git a/src/XShm.c b/src/XShm.c index 922b4cb..38efa9f 100644 --- a/src/XShm.c +++ b/src/XShm.c @@ -235,12 +235,11 @@ Status XShmAttach(Display *dpy, XShmSegmentInfo *shminfo) ShmCheckExtension (dpy, info, 0); - shminfo->shmseg = XAllocID(dpy); LockDisplay(dpy); GetReq(ShmAttach, req); req->reqType = info->codes->major_opcode; req->shmReqType = X_ShmAttach; - req->shmseg = shminfo->shmseg; + req->shmseg = shminfo->shmseg = XAllocID(dpy); req->shmid = shminfo->shmid; req->readOnly = shminfo->readOnly ? xTrue : xFalse; UnlockDisplay(dpy);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor