stage: Maintain the motion event delivery invariants
It is possible, by calling clutter_set_motion_events_enabled() prior to the creation of any stage, to control the per-actor motion event delivery flag on each newly created stage. Since we deprecated the global accessor functions in favour of the per-Stage ones, we need to remove the call to clutter_get_motion_events_enabled() inside the ClutterStage instance initialization, and replace it with an internal function. This code will go away when we can finally break API and remove the deprecated functions.
This commit is contained in:
@ -1998,7 +1998,14 @@ clutter_stage_init (ClutterStage *self)
|
||||
priv->use_fog = FALSE;
|
||||
priv->throttle_motion_events = TRUE;
|
||||
priv->min_size_changed = FALSE;
|
||||
priv->motion_events_enabled = clutter_get_motion_events_enabled ();
|
||||
|
||||
/* XXX - we need to keep the invariant that calling
|
||||
* clutter_set_motion_event_enabled() before the stage creation
|
||||
* will cause motion event delivery to be disabled on any newly
|
||||
* created stage. this can go away when we break API and remove
|
||||
* deprecated functions.
|
||||
*/
|
||||
priv->motion_events_enabled = _clutter_context_get_motion_events_enabled ();
|
||||
|
||||
priv->color = default_stage_color;
|
||||
|
||||
|
Reference in New Issue
Block a user