mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
wayland: don't require Clutter backend variables to be set from outside
When running under mutter-launch, we can assume we're running on bare metal, and set the clutter backend appropriately. https://bugzilla.gnome.org/show_bug.cgi?id=706421
This commit is contained in:
parent
b5f3238f6f
commit
7360aece74
@ -256,6 +256,14 @@ meta_get_option_context (void)
|
|||||||
bindtextdomain (GETTEXT_PACKAGE, MUTTER_LOCALEDIR);
|
bindtextdomain (GETTEXT_PACKAGE, MUTTER_LOCALEDIR);
|
||||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||||
|
|
||||||
|
/* We must set the windowing backend here, because Clutter creates the backend
|
||||||
|
object when the first call is made.
|
||||||
|
|
||||||
|
We consider running from mutter-launch equivalent to running from bare metal.
|
||||||
|
*/
|
||||||
|
if (getenv ("WESTON_LAUNCHER_SOCK"))
|
||||||
|
clutter_set_windowing_backend (CLUTTER_WINDOWING_EGL);
|
||||||
|
|
||||||
ctx = g_option_context_new (NULL);
|
ctx = g_option_context_new (NULL);
|
||||||
g_option_context_add_main_entries (ctx, meta_options, GETTEXT_PACKAGE);
|
g_option_context_add_main_entries (ctx, meta_options, GETTEXT_PACKAGE);
|
||||||
g_option_context_add_group (ctx, clutter_get_option_group_without_init ());
|
g_option_context_add_group (ctx, clutter_get_option_group_without_init ());
|
||||||
|
Loading…
Reference in New Issue
Block a user