~ci-train-bot/unity-system-compositor/unity-system-compositor-ubuntu-artful-2806

« back to all changes in this revision

Viewing changes to src/server.cpp

  • Committer: Bileto Bot
  • Date: 2017-02-07 00:15:32 UTC
  • mfrom: (200.93.7 0.9)
  • Revision ID: ci-train-bot@canonical.com-20170207001532-iof35poz89fbd3lg
* 0.9.1 release:
  - Update the Unity.Display DBus interface to support multiple
    outputs better.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#include <mir/log.h>
44
44
#include <mir/abnormal_exit.h>
45
45
#include <mir/main_loop.h>
 
46
#include <mir/observer_registrar.h>
46
47
 
47
48
#include <boost/exception/all.hpp>
48
49
 
292
293
    return screen(
293
294
        [this]
294
295
        {
295
 
            return std::make_shared<MirScreen>(
 
296
            auto mir_screen = std::make_shared<MirScreen>(
296
297
                the_compositor(),
297
298
                the_display());
 
299
 
 
300
            the_display_configuration_observer_registrar()->register_interest(mir_screen);
 
301
 
 
302
            return mir_screen;
298
303
        });
299
304
}
300
305