Merge lp:~alan-griffiths/unity-system-compositor/prepare-for-Mir-0.1.7 into lp:unity-system-compositor

Proposed by Alan Griffiths
Status: Merged
Approved by: kevin gunn
Approved revision: 126
Merged at revision: 124
Proposed branch: lp:~alan-griffiths/unity-system-compositor/prepare-for-Mir-0.1.7
Merge into: lp:unity-system-compositor
Prerequisite: lp:~alan-griffiths/unity-system-compositor/tidy-config-options
Diff against target: 40 lines (+4/-14)
2 files modified
src/dbus_screen.cpp (+4/-12)
src/system_compositor.cpp (+0/-2)
To merge this branch: bzr merge lp:~alan-griffiths/unity-system-compositor/prepare-for-Mir-0.1.7
Reviewer Review Type Date Requested Status
kevin gunn (community) Approve
Review via email: mp+211334@code.launchpad.net

Commit message

Changes for Mir 0.1.7

Description of the change

Changes for Mir 0.1.7

To post a comment you must log in.
Revision history for this message
kevin gunn (kgunn72) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/dbus_screen.cpp'
--- src/dbus_screen.cpp 2014-03-11 03:37:11 +0000
+++ src/dbus_screen.cpp 2014-03-17 15:13:16 +0000
@@ -34,19 +34,11 @@
34 std::shared_ptr<mg::DisplayConfiguration> displayConfig = display->configuration();34 std::shared_ptr<mg::DisplayConfiguration> displayConfig = display->configuration();
35 std::shared_ptr<mc::Compositor> compositor = config->the_compositor();35 std::shared_ptr<mc::Compositor> compositor = config->the_compositor();
3636
37 displayConfig->for_each_output([&](const mg::DisplayConfigurationOutput displayConfigOutput) {37 displayConfig->for_each_output(
38 if (displayConfigOutput.power_mode != mode) {38 [&](const mg::UserDisplayConfigurationOutput displayConfigOutput) {
39 displayConfig->configure_output(39 displayConfigOutput.power_mode=mode;
40 displayConfigOutput.id, //unchanged
41 displayConfigOutput.used, //unchanged
42 displayConfigOutput.top_left, //unchanged
43 displayConfigOutput.current_mode_index, //unchanged
44 displayConfigOutput.current_format,
45 mode,
46 displayConfigOutput.orientation //unchanged
47 );
48 }40 }
49 });41 );
5042
51 if (mode != MirPowerMode::mir_power_mode_on)43 if (mode != MirPowerMode::mir_power_mode_on)
52 compositor->stop();44 compositor->stop();
5345
=== modified file 'src/system_compositor.cpp'
--- src/system_compositor.cpp 2014-03-17 15:13:16 +0000
+++ src/system_compositor.cpp 2014-03-17 15:13:16 +0000
@@ -233,8 +233,6 @@
233 ("version", "Show version of Unity System Compositor")233 ("version", "Show version of Unity System Compositor")
234 ("public-socket", po::value<bool>(), "Make the socket file publicly writable")234 ("public-socket", po::value<bool>(), "Make the socket file publicly writable")
235 ("power-off-delay", po::value<int>(), "Delay in milliseconds before powering off screen [int]");235 ("power-off-delay", po::value<int>(), "Delay in milliseconds before powering off screen [int]");
236
237 setenv("MIR_SERVER_STANDALONE", "true", 0); // Default to standalone
238 }236 }
239237
240 void parse_config_file(238 void parse_config_file(

Subscribers

People subscribed via source and target branches