NAME

XFilterEvent - filter X events for an input method

SYNTAX

Bool XFilterEvent(XEvent *_e_v_e_n_t, Window _w);

ARGUMENTS

_e_v_e_n_t Specifies the event to filter.
_w Specifies the window for which the filter is to be applied.

DESCRIPTION

If the window argument is _N_o_n_e, _X_F_i_l_t_e_r_E_v_e_n_t applies the filter to the window specified in the _X_E_v_e_n_t structure. The window argument is provided so that layers above Xlib that do event redirection can indicate to which window an event has been redirected.

If _X_F_i_l_t_e_r_E_v_e_n_t returns _T_r_u_e, then some input method has filtered the event, and the client should discard the event. If _X_F_i_l_t_e_r_E_v_e_n_t returns _F_a_l_s_e, then the client should continue processing the event.

If a grab has occurred in the client and _X_F_i_l_t_e_r_E_v_e_n_t returns _T_r_u_e, the client should ungrab the keyboard.

SEE ALSO

XNextEvent(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e