monitor-manager/dummy: Fix name of mode debug env var

It provides ways to configure the modes, not the actual monitors.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/529
This commit is contained in:
Jonas Ådahl 2019-04-09 13:08:21 +02:00
parent 980d9b1042
commit 20731887f2

View File

@ -145,7 +145,7 @@ append_monitor (MetaMonitorManager *manager,
const char *mode_specs_str; const char *mode_specs_str;
GList *l; GList *l;
mode_specs_str = getenv ("MUTTER_DEBUG_DUMMY_MONITORS_SPECS"); mode_specs_str = getenv ("MUTTER_DEBUG_DUMMY_MODE_SPECS");
if (mode_specs_str && *mode_specs_str != '\0') if (mode_specs_str && *mode_specs_str != '\0')
{ {
g_auto (GStrv) specs = g_strsplit (mode_specs_str, ":", -1); g_auto (GStrv) specs = g_strsplit (mode_specs_str, ":", -1);
@ -397,10 +397,11 @@ meta_monitor_manager_dummy_read_current (MetaMonitorManager *manager)
* Specifies the number of dummy monitors to include in the stage. Every * Specifies the number of dummy monitors to include in the stage. Every
* monitor is 1024x786 pixels and they are placed on a horizontal row. * monitor is 1024x786 pixels and they are placed on a horizontal row.
* *
* MUTTER_DEBUG_DUMMY_MONITORS_SPECS * MUTTER_DEBUG_DUMMY_MODE_SPECS
* *
* A colon separated list of monitor specifications that can be used to * A colon separated list of mode specifications that can be used to
* configure the monitor via dbus API. * configure the monitor via dbus API. Setting this environment variable
* overrides the default set of modes available.
* Format should be WWxHH:WWxHH@RR * Format should be WWxHH:WWxHH@RR
* *
* MUTTER_DEBUG_DUMMY_MONITOR_SCALES * MUTTER_DEBUG_DUMMY_MONITOR_SCALES