~ci-train-bot/unity-system-compositor/unity-system-compositor-ubuntu-zesty-2373

« back to all changes in this revision

Viewing changes to src/server.cpp

  • Committer: Tarmac
  • Author(s): Alexandros Frantzis
  • Date: 2017-02-06 13:28:45 UTC
  • mfrom: (305.2.2 dbus-active-outputs-trunk)
  • Revision ID: tarmac-20170206132845-03qka2u231py63b1
Update the Unity.Display DBus interface to support multiple outputs better.

Approved by mir-ci-bot.

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