X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fhandlers.h;h=0aaaf158a67c33730958e5ba3ede0a087ae2dbb9;hb=05e39c1c480de807b59bd13386d2cffe35e564b6;hp=839bac619278226ffa6fc8cb4531a6168056e948;hpb=48f5166daf684c53a319824222909d0d9225d557;p=i3%2Fi3 diff --git a/include/handlers.h b/include/handlers.h index 839bac61..0aaaf158 100644 --- a/include/handlers.h +++ b/include/handlers.h @@ -15,8 +15,22 @@ extern int randr_base; +/** + * Adds the given sequence to the list of events which are ignored. + * If this ignore should only affect a specific response_type, pass + * response_type, otherwise, pass -1. + * + * Every ignored sequence number gets garbage collected after 5 seconds. + * + */ void add_ignore_event(const int sequence, const int response_type); +/** + * Checks if the given sequence is ignored and returns true if so. + * + */ +bool event_is_ignored(const int sequence, const int response_type); + /** * Takes an xcb_generic_event_t and calls the appropriate handler, based on the * event type.