summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Campagna <gcampagn@redhat.com>2013-08-26 17:27:33 +0200
committerGiovanni Campagna <gcampagn@redhat.com>2013-08-27 09:58:50 +0200
commit62d908be420e87c9d53534fbacbb5262e3572937 (patch)
tree80e6a9b3d9bd8b0e46c4a8808d7807ecb35ab642
parent9bd366f2a6860415d9812ab011b00da218be0f28 (diff)
downloadmutter-62d908be420e87c9d53534fbacbb5262e3572937.tar.gz
MonitorManager: return the new backlight after changing
Modify the interface of ChangeBacklight to return the new value, to account for rounding to HW limits. https://bugzilla.gnome.org/show_bug.cgi?id=706729
-rw-r--r--src/core/monitor.c2
-rw-r--r--src/xrandr.xml3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/core/monitor.c b/src/core/monitor.c
index e3e81ab0c..c6b46496c 100644
--- a/src/core/monitor.c
+++ b/src/core/monitor.c
@@ -1228,7 +1228,7 @@ meta_monitor_manager_handle_change_backlight (MetaDBusDisplayConfig *skeleton,
META_MONITOR_MANAGER_GET_CLASS (manager)->change_backlight (manager, output, value);
- meta_dbus_display_config_complete_change_backlight (skeleton, invocation);
+ meta_dbus_display_config_complete_change_backlight (skeleton, invocation, output->backlight);
return TRUE;
}
diff --git a/src/xrandr.xml b/src/xrandr.xml
index d8574ad7c..06449c36a 100644
--- a/src/xrandr.xml
+++ b/src/xrandr.xml
@@ -205,11 +205,14 @@
Changes the backlight of @output to @value, which is
expressed as a percentage and rounded to the HW limits.
+
+ Returns the new value after rounding.
-->
<method name="ChangeBacklight">
<arg name="serial" direction="in" type="u" />
<arg name="output" direction="in" type="u" />
<arg name="value" direction="in" type="i" />
+ <arg name="new_value" direction="out" type="i" />
</method>
<!--