Function xcb::xproto::send_event_checked [−][src]
pub fn send_event_checked<'a, T>(
c: &'a Connection,
propagate: bool,
destination: Window,
event_mask: u32,
event: &Event<T>
) -> VoidCookie<'a>
send an event
Identifies the destination
window, determines which clients should receive
the specified event and ignores any active grabs.
The event
must be one of the core events or an event defined by an extension,
so that the X server can correctly byte-swap the contents as necessary. The
contents of event
are otherwise unaltered and unchecked except for the
send_event
field which is forced to ‘true’.
parameters:
-
c: The connection object to the server
-
propagate: If
propagate
is true and no clients have selected any event ondestination
, the destination is replaced with the closest ancestor ofdestination
for which some client has selected a type inevent_mask
and for which no intervening window has that type in its do-not-propagate-mask. If no such window exists or if the window is an ancestor of the focus window andInputFocus
was originally specified as the destination, the event is not sent to any clients. Otherwise, the event is reported to every client selecting on the final destination any of the types specified inevent_mask
. -
destination: The window to send this event to. Every client which selects any event within
event_mask
ondestination
will get the event.The special value
XCB_SEND_EVENT_DEST_POINTER_WINDOW
refers to the window that contains the mouse pointer.The special value
XCB_SEND_EVENT_DEST_ITEM_FOCUS
refers to the window which has the keyboard focus. -
event_mask: Event_mask for determining which clients should receive the specified event. See
destination
andpropagate
. -
event: The event to send to the specified
destination
.