From 904f71cda5ef818b53171888efb6b0dd0f929565 Mon Sep 17 00:00:00 2001
From: Jamey Sharp <jamey@minilop.net>
Date: Sat, 10 Apr 2010 00:30:06 +0000
Subject: 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>
---
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 ();
--
cgit v0.8.3-6-g21f6
