Get the screen number of a display. A screen number is usually grabbed from the environmental variable "DISPLAY". For example, this function returns "1" if "DISPLAY=localhost:0.1".
References scim_bridge_perrorln().
Referenced by ScimBridgeAgentPanelClientImpl::update_screen().