summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2010-04-09 17:30:06 -0700
committerJamey Sharp <jamey@minilop.net>2010-04-09 17:30:06 -0700
commit904f71cda5ef818b53171888efb6b0dd0f929565 (patch)
tree26f176200ebe65eb765de1f4774594eae8ccbf9e /src
parentb403e38d7d0994d223984c11f26f5b8749851522 (diff)
downloadxorg-lib-libXext-904f71cda5ef818b53171888efb6b0dd0f929565.tar.gz
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>
Diffstat (limited to 'src')
-rw-r--r--src/Xdbe.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Xdbe.c b/src/Xdbe.c
index 77344b4..7b5244d 100644
--- a/src/Xdbe.c
+++ b/src/Xdbe.c
@@ -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 ();