XDisplayConnection

Platform-specific for X11. A singleton class (well, all its methods are actually static... so more like a namespace) wrapping a Display*.

Members

Properties

isLocal
bool isLocal [@property getter]

Guesses if the connection appears to be local.

Static functions

addRootInput
void addRootInput(EventMask mask)

Requests the specified input from the root window on the connection, in addition to any other request.

close
void close()
connectionSequenceNumber
int connectionSequenceNumber()

use this for lazy caching when reconnection

discardAndRecreate
void discardAndRecreate(string newDisplayString)

Attempts recreation of state, may require application assistance You MUST call this OUTSIDE the event loop. Let the exception kill the loop, then call this, and if successful, reenter the loop.

get
Display* get()
resetDisplayName
resetDisplayName()

resets to the default display string

setDisplayName
setDisplayName(string newDisplayName)

can be used to override normal handling of display name from environment and/or command line

Meta