diff options
author | Neil Roberts <neil@linux.intel.com> | 2013-08-29 17:10:56 +0100 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2013-11-14 14:32:17 -0500 |
commit | 70292672c4381c3039bd88255c4f57d45e142599 (patch) | |
tree | bcdfb3758d580a162b0dd611d050be4f3da3a5f2 /clutter/clutter-event-private.h | |
parent | c2b0b9aace969ecb19e703c8d53d157eb1072559 (diff) | |
download | clutter-70292672c4381c3039bd88255c4f57d45e142599.tar.gz |
Add API to install an event filter
This adds clutter_event_add/remove_filter which adds a callback
function which will receive all Clutter events just before the event
signal is emitted for them. The event filter will be invoked
regardless of any grabs or captures. This will be used by Mutter which
wants to access the events at a lower level then the event bubbling
mechanism. It needs to see all mouse motion events even if there is a
grab in place.
https://bugzilla.gnome.org/show_bug.cgi?id=707560
Diffstat (limited to 'clutter/clutter-event-private.h')
-rw-r--r-- | clutter/clutter-event-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clutter/clutter-event-private.h b/clutter/clutter-event-private.h index 955db260e..00d627d12 100644 --- a/clutter/clutter-event-private.h +++ b/clutter/clutter-event-private.h @@ -11,6 +11,8 @@ void _clutter_event_set_pointer_emulated (ClutterEvent *eve /* Reinjecting queued events for processing */ void _clutter_process_event (ClutterEvent *event); +gboolean _clutter_event_process_filters (ClutterEvent *event); + /* clears the event queue inside the main context */ void _clutter_clear_events_queue (void); void _clutter_clear_events_queue_for_stage (ClutterStage *stage); |