mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
clutter: Remove pick mode from context
It is not used anywhere now. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1509
This commit is contained in:
parent
8d47f79b2c
commit
56ed0bf001
@ -2311,14 +2311,6 @@ _clutter_clear_events_queue (void)
|
||||
}
|
||||
}
|
||||
|
||||
ClutterPickMode
|
||||
_clutter_context_get_pick_mode (void)
|
||||
{
|
||||
ClutterMainContext *context = _clutter_context_get_default ();
|
||||
|
||||
return context->pick_mode;
|
||||
}
|
||||
|
||||
/**
|
||||
* clutter_add_debug_flags: (skip)
|
||||
*
|
||||
|
@ -127,8 +127,6 @@ struct _ClutterMainContext
|
||||
* ordered from least recently added to most recently added */
|
||||
GList *event_filters;
|
||||
|
||||
ClutterPickMode pick_mode;
|
||||
|
||||
/* default FPS; this is only used if we cannot sync to vblank */
|
||||
guint frame_rate;
|
||||
|
||||
@ -176,7 +174,6 @@ ClutterMainContext * _clutter_context_get_default (void);
|
||||
void _clutter_context_lock (void);
|
||||
void _clutter_context_unlock (void);
|
||||
gboolean _clutter_context_is_initialized (void);
|
||||
ClutterPickMode _clutter_context_get_pick_mode (void);
|
||||
gboolean _clutter_context_get_show_fps (void);
|
||||
|
||||
gboolean _clutter_feature_init (GError **error);
|
||||
|
@ -1391,12 +1391,9 @@ _clutter_stage_do_pick_on_view (ClutterStage *stage,
|
||||
ClutterPickMode mode,
|
||||
ClutterStageView *view)
|
||||
{
|
||||
ClutterMainContext *context = _clutter_context_get_default ();
|
||||
ClutterStagePrivate *priv = stage->priv;
|
||||
int i;
|
||||
|
||||
g_assert (context->pick_mode == CLUTTER_PICK_NONE);
|
||||
|
||||
COGL_TRACE_BEGIN_SCOPED (ClutterStagePickView, "Pick (view)");
|
||||
|
||||
if (mode != priv->cached_pick_mode)
|
||||
@ -1407,10 +1404,8 @@ _clutter_stage_do_pick_on_view (ClutterStage *stage,
|
||||
|
||||
pick_context = clutter_pick_context_new_for_view (view, mode);
|
||||
|
||||
context->pick_mode = mode;
|
||||
priv->cached_pick_mode = CLUTTER_PICK_NONE;
|
||||
clutter_actor_pick (CLUTTER_ACTOR (stage), pick_context);
|
||||
context->pick_mode = CLUTTER_PICK_NONE;
|
||||
priv->cached_pick_mode = mode;
|
||||
|
||||
clutter_pick_context_destroy (pick_context);
|
||||
|
Loading…
Reference in New Issue
Block a user