send_event/[4,5] 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 send_event field.
The argument WindowSpec can be:
pointer_window
input_focus
Propagate is a boolean value and EventMask an integer bitmask that specifies the selected events.
send_event/[4,5] uses the Propagate and EventMask
arguments to
determine which clients should receive the specified events as follows:
false
true
The predicate 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.