diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-04-09 17:30:06 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-04-09 17:30:06 -0700 |
commit | 904f71cda5ef818b53171888efb6b0dd0f929565 (patch) | |
tree | 26f176200ebe65eb765de1f4774594eae8ccbf9e | |
parent | b403e38d7d0994d223984c11f26f5b8749851522 (diff) |
XAllocID must only be called with the Display lock held.
This patch makes XdbeAllocateBackBufferName follow the same XID allocation
pattern used in other stubs.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
-rw-r--r-- | src/Xdbe.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -184,14 +184,11 @@ XdbeBackBuffer XdbeAllocateBackBufferName( */ DbeCheckExtension (dpy, info, (XdbeBackBuffer)0); - /* allocate the id */ - buffer = XAllocID (dpy); - LockDisplay(dpy); DbeGetReq(DbeAllocateBackBufferName, req, info); req->window = window; req->swapAction = (unsigned char)swap_action; - req->buffer = buffer; + req->buffer = buffer = XAllocID (dpy); UnlockDisplay (dpy); SyncHandle (); |