Some displays have both image and overlay planes. For such
displays there are four combinations of image and overlay planes
in which the server can run. To get the current mode of a specified
screen, use
XHPGetServerMode.
int XHPGetServerMode(display, screen) Display *display; int screen;
|
Title not available (Getting the Server Mode )
- display
Specifies the connection to the X server.
- screen
Specifies the number of the screen whose mode is
requested.
XHPGetServerMode
allows a client program to determine the mode of a particular screen.
The mode returned is an integer that can be compared against the
following predefined modes:
Table 6-3 Server
Modes
Predefined Integer Name | Mode Description |
---|
XHPOVERLAY_MODE | The X server is running in the overlay
planes. |
XHPIMAGE_MDOE | The X server is running in the image
planes. |
XHPSTACKED_SCREENS_MODE | The X server is running with the overlay
and image planes on different screens. |
XHPCOMBINED_MODE | The X server is running in both the overlay
and image planes. |
These constants can be obtained by including the file <X11/XHPproto.h>.
If an invalid screen number is used, a -1 is returned by this
function.