send_event(+WindowSpec, +Propagate, +EventMask, +XEvent) send_event(+Displayable, +WindowSpec, +Propagate, +EventMask, +XEvent)
Asks the server to send the event XEvent, an X11 event
structure, to the specified window. Fail if XEvent could not be
converted into the server format, usually a sign that the event
type is invalid. The delivered event will have a value of
true in its
The argument WindowSpec can be:
Propagate is a boolean value and EventMask an integer bitmask that specifies the selected events.
send_event/[4,5] uses the Propagate and EventMask
determine which clients should receive the specified events as follows:
event_list_mask/2 is useful to translate
between X11 event mask names and bitmasks.
No checking on the validity of the event contents is performed.