clutter: Remove 'stage cursor' feature

It was unused.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2002>
This commit is contained in:
Jonas Ådahl 2021-09-17 09:43:35 +02:00 committed by Marge Bot
parent 3b9409a139
commit 85de82bb4e
2 changed files with 0 additions and 15 deletions

View File

@ -899,7 +899,6 @@ typedef enum /*< prefix=CLUTTER_SCROLL >*/
/**
* ClutterFeatureFlags:
* @CLUTTER_FEATURE_STAGE_STATIC: Set if stage size if fixed (i.e framebuffer)
* @CLUTTER_FEATURE_STAGE_CURSOR: Set if stage has a graphical cursor.
* @CLUTTER_FEATURE_SHADERS_GLSL: Set if the backend supports GLSL shaders.
* @CLUTTER_FEATURE_OFFSCREEN: Set if the backend supports offscreen rendering.
* @CLUTTER_FEATURE_STAGE_MULTIPLE: Set if multiple stages are supported.
@ -913,7 +912,6 @@ typedef enum /*< prefix=CLUTTER_SCROLL >*/
typedef enum
{
CLUTTER_FEATURE_STAGE_STATIC = (1 << 6),
CLUTTER_FEATURE_STAGE_CURSOR = (1 << 8),
CLUTTER_FEATURE_SHADERS_GLSL = (1 << 9),
CLUTTER_FEATURE_OFFSCREEN = (1 << 10),
CLUTTER_FEATURE_STAGE_MULTIPLE = (1 << 11),

View File

@ -178,18 +178,6 @@ meta_clutter_backend_x11_finalize (GObject *gobject)
G_OBJECT_CLASS (meta_clutter_backend_x11_parent_class)->finalize (gobject);
}
static ClutterFeatureFlags
meta_clutter_backend_x11_get_features (ClutterBackend *clutter_backend)
{
ClutterBackendClass *parent_class =
CLUTTER_BACKEND_CLASS (meta_clutter_backend_x11_parent_class);
ClutterFeatureFlags flags = CLUTTER_FEATURE_STAGE_CURSOR;
flags |= parent_class->get_features (clutter_backend);
return flags;
}
static void
update_last_event_time (MetaClutterBackendX11 *clutter_backend_x11,
XEvent *xevent)
@ -442,7 +430,6 @@ meta_clutter_backend_x11_class_init (MetaClutterBackendX11Class *klass)
gobject_class->finalize = meta_clutter_backend_x11_finalize;
clutter_backend_class->finish_init = meta_clutter_backend_x11_finish_init;
clutter_backend_class->get_features = meta_clutter_backend_x11_get_features;
clutter_backend_class->get_display = meta_clutter_backend_x11_get_display;
clutter_backend_class->get_renderer = meta_clutter_backend_x11_get_renderer;