mirror of
https://github.com/brl/mutter.git
synced 2025-07-12 13:37:16 +00:00
Add an option to run as a wayland compositor
Move the option from the mutter binary to libmutter, and rename from --nested to --wayland. This allows gnome-shell to drop the set_is_wayland_compositor() call. https://bugzilla.gnome.org/show_bug.cgi?id=707897
This commit is contained in:
@ -191,6 +191,7 @@ static gchar *opt_client_id;
|
||||
static gboolean opt_replace_wm;
|
||||
static gboolean opt_disable_sm;
|
||||
static gboolean opt_sync;
|
||||
static gboolean opt_wayland;
|
||||
|
||||
static GOptionEntry meta_options[] = {
|
||||
{
|
||||
@ -228,6 +229,12 @@ static GOptionEntry meta_options[] = {
|
||||
N_("Make X calls synchronous"),
|
||||
NULL
|
||||
},
|
||||
{
|
||||
"wayland", 0, 0, G_OPTION_ARG_NONE,
|
||||
&opt_wayland,
|
||||
N_("Run as a wayland compositor"),
|
||||
NULL
|
||||
},
|
||||
{NULL}
|
||||
};
|
||||
|
||||
@ -393,6 +400,8 @@ meta_init (void)
|
||||
if (g_getenv ("MUTTER_DEBUG"))
|
||||
meta_set_debugging (TRUE);
|
||||
|
||||
meta_set_is_wayland_compositor (opt_wayland);
|
||||
|
||||
if (g_get_home_dir ())
|
||||
if (chdir (g_get_home_dir ()) < 0)
|
||||
meta_warning ("Could not change to home directory %s.\n",
|
||||
|
Reference in New Issue
Block a user