~gerboland/unity-mir/app-matching-hack-improvement

« back to all changes in this revision

Viewing changes to src/unity-mir/shellserverconfiguration.cpp

  • Committer: Tarmac
  • Author(s): Ricardo Mendoza
  • Date: 2014-01-14 07:43:38 UTC
  • mfrom: (162.2.2 unity-mir)
  • Revision ID: tarmac-20140114074338-29u99kvautop8mih
Re-enable Sidestage as it was under SF.

Approved by Gerry Boland, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
// scope the unique pointer will be destroyed so we return 0
126
126
//
127
127
 
 
128
InitialSurfacePlacementStrategy *ShellServerConfiguration::placementStrategy()
 
129
{
 
130
    auto sharedPtr = the_shell_placement_strategy();
 
131
    if (sharedPtr.unique()) return 0;
 
132
 
 
133
    return static_cast<InitialSurfacePlacementStrategy*>(sharedPtr.get());
 
134
}
 
135
 
128
136
SessionAuthorizer *ShellServerConfiguration::sessionAuthorizer()
129
137
{
130
138
    auto sharedPtr = the_session_authorizer();