mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
clutter: Remove clutter_set_windowing_backend()
This is a choice imposed by mutter, not something you can usefully set from the config file. https://gitlab.gnome.org/GNOME/mutter/merge_requests/463
This commit is contained in:
parent
6cbaeae64d
commit
033a771e8c
@ -160,8 +160,6 @@ void _clutter_backend_reset_cogl_framebuffer (Clutter
|
|||||||
|
|
||||||
void clutter_set_allowed_drivers (const char *drivers);
|
void clutter_set_allowed_drivers (const char *drivers);
|
||||||
|
|
||||||
void clutter_try_set_windowing_backend (const char *drivers);
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __CLUTTER_BACKEND_PRIVATE_H__ */
|
#endif /* __CLUTTER_BACKEND_PRIVATE_H__ */
|
||||||
|
@ -1094,61 +1094,6 @@ clutter_wayland_set_compositor_display (void *display)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* clutter_set_windowing_backend:
|
|
||||||
* @backend_type: a comma separated list of windowing backends
|
|
||||||
*
|
|
||||||
* Restricts Clutter to only use the specified backend or list of backends.
|
|
||||||
*
|
|
||||||
* You can use one of the `CLUTTER_WINDOWING_*` symbols, e.g.
|
|
||||||
*
|
|
||||||
* |[<!-- language="C" -->
|
|
||||||
* clutter_set_windowing_backend (CLUTTER_WINDOWING_X11);
|
|
||||||
* ]|
|
|
||||||
*
|
|
||||||
* Will force Clutter to use the X11 windowing and input backend, and terminate
|
|
||||||
* if the X11 backend could not be initialized successfully.
|
|
||||||
*
|
|
||||||
* Since Clutter 1.26, you can also use a comma-separated list of windowing
|
|
||||||
* system backends to provide a fallback in case backends are not available or
|
|
||||||
* enabled, e.g.:
|
|
||||||
*
|
|
||||||
* |[<!-- language="C" -->
|
|
||||||
* clutter_set_windowing_backend ("gdk,wayland,x11");
|
|
||||||
* ]|
|
|
||||||
*
|
|
||||||
* Will make Clutter test for the GDK, Wayland, and X11 backends in that order.
|
|
||||||
*
|
|
||||||
* You can use the `*` special value to ask Clutter to use the internally
|
|
||||||
* defined list of backends. For instance:
|
|
||||||
*
|
|
||||||
* |[<!-- language="C" -->
|
|
||||||
* clutter_set_windowing_backend ("x11,wayland,*");
|
|
||||||
* ]|
|
|
||||||
*
|
|
||||||
* Will make Clutter test the X11 and Wayland backends, and then fall back
|
|
||||||
* to the internal list of available backends.
|
|
||||||
*
|
|
||||||
* This function must be called before the first API call to Clutter, including
|
|
||||||
* clutter_get_option_context()
|
|
||||||
*
|
|
||||||
* Since: 1.16
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
clutter_set_windowing_backend (const char *backend_type)
|
|
||||||
{
|
|
||||||
g_return_if_fail (backend_type != NULL);
|
|
||||||
|
|
||||||
allowed_backends = g_strdup (backend_type);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
clutter_try_set_windowing_backend (const char *backend_type)
|
|
||||||
{
|
|
||||||
if (allowed_backends == NULL)
|
|
||||||
clutter_set_windowing_backend (backend_type);
|
|
||||||
}
|
|
||||||
|
|
||||||
PangoDirection
|
PangoDirection
|
||||||
_clutter_backend_get_keymap_direction (ClutterBackend *backend)
|
_clutter_backend_get_keymap_direction (ClutterBackend *backend)
|
||||||
{
|
{
|
||||||
|
@ -60,9 +60,6 @@ GType clutter_backend_get_type (void) G_GNUC_CONST;
|
|||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
ClutterBackend * clutter_get_default_backend (void);
|
ClutterBackend * clutter_get_default_backend (void);
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
|
||||||
void clutter_set_windowing_backend (const char *backend_type);
|
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
gdouble clutter_backend_get_resolution (ClutterBackend *backend);
|
gdouble clutter_backend_get_resolution (ClutterBackend *backend);
|
||||||
|
|
||||||
|
@ -193,17 +193,6 @@ clutter_config_read_from_key_file (GKeyFile *keyfile)
|
|||||||
if (!g_key_file_has_group (keyfile, ENVIRONMENT_GROUP))
|
if (!g_key_file_has_group (keyfile, ENVIRONMENT_GROUP))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
str_value =
|
|
||||||
g_key_file_get_string (keyfile, ENVIRONMENT_GROUP,
|
|
||||||
"Backends",
|
|
||||||
&key_error);
|
|
||||||
if (key_error != NULL)
|
|
||||||
g_clear_error (&key_error);
|
|
||||||
else
|
|
||||||
clutter_try_set_windowing_backend (str_value);
|
|
||||||
|
|
||||||
g_free (str_value);
|
|
||||||
|
|
||||||
str_value =
|
str_value =
|
||||||
g_key_file_get_string (keyfile, ENVIRONMENT_GROUP,
|
g_key_file_get_string (keyfile, ENVIRONMENT_GROUP,
|
||||||
"Drivers",
|
"Drivers",
|
||||||
|
Loading…
Reference in New Issue
Block a user