~kgunn72/mir/mir-mwc-ppa-disable-tests

« back to all changes in this revision

Viewing changes to src/server/scene/application_session.cpp

  • Committer: Tarmac
  • Author(s): Alan Griffiths
  • Date: 2015-01-28 20:21:34 UTC
  • mfrom: (2257.1.31 mir3)
  • Revision ID: tarmac-20150128202134-dn97lf8gwk0xcqbc
shell, frontend: Provide a mir::shell::Shell customization point.

Approved by PS Jenkins bot, Kevin DuBois, Alexandros Frantzis.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Authored by: Robert Carr <racarr@canonical.com>
17
17
 */
18
18
 
 
19
#define MIR_INCLUDE_DEPRECATED_EVENT_HEADER
 
20
 
19
21
#include "application_session.h"
20
22
#include "snapshot_strategy.h"
21
23
#include "default_session_container.h"
117
119
 
118
120
std::shared_ptr<mf::Surface> ms::ApplicationSession::get_surface(mf::SurfaceId id) const
119
121
{
 
122
    return surface(id);
 
123
}
 
124
 
 
125
std::shared_ptr<ms::Surface> ms::ApplicationSession::surface(mf::SurfaceId id) const
 
126
{
120
127
    std::unique_lock<std::mutex> lock(surfaces_mutex);
121
128
 
122
129
    return checked_find(id)->second;