Commit bdcb395b authored by Jonas Ådahl's avatar Jonas Ådahl

DisplayConfig: Add 'supports-changing-layout-mode' property

This property may be used by a client to determine whether it is
allowed to change the layout mode.
parent 1caa7f76
......@@ -1531,11 +1531,14 @@ meta_monitor_manager_handle_get_current_state (MetaDBusDisplayConfig *skeleton,
g_variant_new_boolean (FALSE));
g_variant_builder_add (&properties_builder, "{sv}",
g_variant_new_uint32 (manager->layout_mode));
g_variant_builder_add (&properties_builder, "{sv}",
g_variant_new_uint32 (manager->layout_mode));
g_variant_new_boolean (TRUE));
if (meta_monitor_manager_get_max_screen_size (manager,
......@@ -398,6 +398,9 @@
using the logical monitor scale.
* 2 : physical - the dimension of a logical monitor is derived from
the monitor modes associated with it.
* "supports-changing-layout-mode" (b): True if the layout mode can be
changed. Absence of this means the
layout mode cannot be changed.
<method name="GetCurrentState">
<arg name="serial" direction="out" type="u" />
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment