Merge lp:~mterry/lightdm/mir-in-sf-seat into lp:lightdm

Proposed by Michael Terry
Status: Merged
Approved by: Robert Ancell
Approved revision: 1843
Merged at revision: 1843
Proposed branch: lp:~mterry/lightdm/mir-in-sf-seat
Merge into: lp:lightdm
Diff against target: 16 lines (+4/-2)
1 file modified
src/seat-surfaceflinger.c (+4/-2)
To merge this branch: bzr merge lp:~mterry/lightdm/mir-in-sf-seat
Reviewer Review Type Date Requested Status
Robert Ancell Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+195858@code.launchpad.net

Commit message

Allow "mir" session types in a "surfaceflinger" seat.

Description of the change

Allow "mir" session types in a "surfaceflinger" seat.

This is mostly just convenience for the phone. Mir sessions (of which there is only unity8 right now?) all allow surfaceflinger as a fallback, because they need to support both on the phone.

Supporting "mir" types means that we don't have to ship two desktop session files that only differ in their type field.

And it means that if/when https://code.launchpad.net/~mterry/lightdm/type-fallback/+merge/195674 lands, we can actually do:

[SeatDefaults]
type=unity;surfaceflinger

And the same mir session can work in both seat types.

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
Robert Ancell (robert-ancell) wrote :

Sure

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/seat-surfaceflinger.c'
2--- src/seat-surfaceflinger.c 2013-09-24 17:49:08 +0000
3+++ src/seat-surfaceflinger.c 2013-11-19 20:43:54 +0000
4@@ -26,8 +26,10 @@
5
6 static DisplayServer *
7 seat_surfaceflinger_create_display_server (Seat *seat, const gchar *session_type)
8-{
9- if (strcmp (session_type, "surfaceflinger") == 0)
10+{
11+ /* Allow mir types too, because Mir sessions usually support surfaceflinger
12+ as an alternate mode, since Mir is frequently used on phones. */
13+ if (strcmp (session_type, "surfaceflinger") == 0 || strcmp (session_type, "mir") == 0)
14 return DISPLAY_SERVER (surfaceflinger_server_new ());
15 else
16 {

Subscribers

People subscribed via source and target branches