~mterry/unity-system-compositor/greeter-api

« back to all changes in this revision

Viewing changes to src/system_compositor.cpp

  • Committer: Robert Ancell
  • Date: 2013-04-23 05:05:28 UTC
  • Revision ID: robert.ancell@canonical.com-20130423050528-02i201amk7p707zb
Only send ready when display server is ready

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
{
35
35
    dm_connection.start();
36
36
 
37
 
    dm_connection.send_ready();
38
 
 
39
37
    config = std::make_shared<mir::DefaultServerConfiguration>(argc, argv);
40
38
 
41
39
    try
42
40
    {
43
 
        mir::run_mir(*config, [](mir::DisplayServer&) {/* empty init */});
 
41
        mir::run_mir(*config, [this](mir::DisplayServer&)
 
42
        {
 
43
            dm_connection.send_ready();          
 
44
        });
44
45
        return 0;
45
46
    }
46
47
    catch (mir::AbnormalExit const& error)