Drawable PEXDBAllocateBackBufferName( Display *display, Window window, int hint )
A Drawable ID that references the back buffer for the specified window.
Invoke PEXDBAllocateBackBufferName to request an ID for the back buffer associated with the specified window.
If the specified window does not have a back buffer already associated with it, the implementation allocates the back buffer and returns a name associated with it. If the window already has a back buffer, the implementation does not allocate a new back buffer, but instead returns a unique ID that references the same back buffer already associated with the specified window. It is impossible for the client to allocate more than one back buffer for a given window.
Supply one of the values for hint to indicate the swap action that you are most likely to use for subsequent swap requests.
For an overview, see PEXlib Access and Information Functions.