~mir-team/mir/trunk

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2013-03-22 03:33:00 UTC
  • mfrom: (440.1.138 surface-types)
  • Revision ID: tarmac-20130322033300-qj6cjcvsqhl4mpaw
Add support for surface types (client API, protocol and server).

This work will also form the foundation of supporting surface states.

Approved by PS Jenkins bot, Alan Griffiths, Robert Ancell.

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
        id_s.second->show();
123
123
    }
124
124
}
 
125
 
 
126
int msh::ApplicationSession::configure_surface(mf::SurfaceId id,
 
127
                                               MirSurfaceAttrib attrib,
 
128
                                               int value)
 
129
{
 
130
    std::unique_lock<std::mutex> lock(surfaces_mutex);
 
131
    std::shared_ptr<mf::Surface> surf(checked_find(id)->second);
 
132
 
 
133
    return surf->configure(attrib, value);
 
134
}