If XFilterEvent returns True, then some input method has filtered the event, and the client should discard the event. If XFilterEvent returns False, then the client should continue processing the event.
If a grab has occurred in the client and XFilterEvent returns True, the client should ungrab the keyboard.
Static Wikipedia 2008 (no images)