PEXSetWorkstationBufferMode(3) — Subroutines
Name
PEXSetWorkstationBufferMode - Set Workstation Buffer Mode
Synopsis
void PEXSetWorkstationBufferMode(Display ∗display, PEXWorkstation workstation, int buffer_mode)
Arguments
displayA pointer to a display structure returned by a successful XOpenDisplay call.
workstationThe resource identifier of the workstation.
buffer_modeThe workstation buffering mode (PEXSingleBuffer or PEXDoubleBuffer).
Returns
None
Description
This function sets the requested buffer mode of the specified workstation. If the workstation’s display surface attribute is PEXEmpty, or if the dynamic modification for buffer mode is PEXIMM, the current buffer mode is set to the specified buffer mode and the buffer update is set to PEXNotPending; otherwise, the buffer update is set to PEXPending and the current buffer mode is not changed.
Buffer mode may be one of the following values: PEXSingleBuffer or PEXDoubleBuffer. An error will be generated if the buffer mode is PEXDoubleBuffer and the server cannot allocated the second image buffer.
Data Structures
typedef XID PEXWorkstation;
Errors
BadAllocThe server failed to allocate resources needed for double-buffering.
BadPEXWorkstation
The specified workstation resource identifier is invalid.
BadValueThe specified buffer mode is invalid.
See Also
PEXSetWorkstationDisplayUpdateMode, PEXGetImpDepConstants