Merge lp:~alan-griffiths/unity-mir/reduce-coupling-to-mir-surfaces into lp:unity-mir

Proposed by Alan Griffiths
Status: Merged
Approved by: Gerry Boland
Approved revision: no longer in the source branch.
Merged at revision: 136
Proposed branch: lp:~alan-griffiths/unity-mir/reduce-coupling-to-mir-surfaces
Merge into: lp:unity-mir
Diff against target: 29 lines (+3/-4)
1 file modified
src/unity-mir/surfacecontroller.cpp (+3/-4)
To merge this branch: bzr merge lp:~alan-griffiths/unity-mir/reduce-coupling-to-mir-surfaces
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+192471@code.launchpad.net

Commit message

Avoid unnecessary use of mir::surfaces::SurfaceStackModel (which ought to be internal to Mir)

Description of the change

Avoid unnecessary use of mir::surfaces::SurfaceStackModel (which ought to be internal to Mir)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Gerry Boland (gerboland) wrote :

LGTM

review: Approve
136. By Alan Griffiths

Avoid unnecessary use of mir::surfaces::SurfaceStackModel (which ought to be internal to Mir).

Approved by Gerry Boland, PS Jenkins bot.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/unity-mir/surfacecontroller.cpp'
2--- src/unity-mir/surfacecontroller.cpp 2013-10-07 23:59:05 +0000
3+++ src/unity-mir/surfacecontroller.cpp 2013-10-24 08:28:08 +0000
4@@ -14,7 +14,6 @@
5 * along with this program. If not, see <http://www.gnu.org/licenses/>.
6 */
7
8-#include <mir/surfaces/surface_stack_model.h>
9 #include <mir/shell/surface_creation_parameters.h> // TODO: Remove ~racarr
10
11 #include "surfacecontroller.h"
12@@ -51,15 +50,15 @@
13 newParams.depth = shellSurfaceDepth;
14 newParams.input_mode = mir::input::InputReceptionMode::receives_all_input;
15 shellSurfaceFound = true;
16- return surface_stack->create_surface(newParams);
17+ return ms::SurfaceController::create_surface(session, newParams);
18 } else if (params.name == "MaliitOnScreenKeyboard") { // FIXME: string hardcoded into maliit
19 DLOG("OSK depth");
20 auto newParams = params;
21 newParams.depth = oskSurfaceDepth;
22- return surface_stack->create_surface(newParams);
23+ return ms::SurfaceController::create_surface(session, newParams);
24 } else {
25 DLOG("Default depth");
26- return surface_stack->create_surface(params);
27+ return ms::SurfaceController::create_surface(session, params);
28 }
29 }
30

Subscribers

People subscribed via source and target branches