]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
In the unity seat, if we don't have proper VT support, fake VT 0 instead of a real...
authorMichael Terry <michael.terry@canonical.com>
Wed, 4 Dec 2013 20:29:57 +0000 (20:29 +0000)
committerTarmac <Unknown>
Wed, 4 Dec 2013 20:29:57 +0000 (20:29 +0000)
Approved by Robert Ancell, PS Jenkins bot.

src/seat-unity.c

index e9a89e02f7bb4d081a8cc9430deb66755fdf0ea4..4c224b2b39bc669c5a39681df9d94d95b7358c23 100644 (file)
@@ -314,7 +314,7 @@ seat_unity_start (Seat *seat)
     if (plymouth_get_is_active ())
         plymouth_quit (FALSE);
     if (SEAT_UNITY (seat)->priv->vt < 0)
-        SEAT_UNITY (seat)->priv->vt = vt_get_unused ();
+        SEAT_UNITY (seat)->priv->vt = vt_can_multi_seat () ? vt_get_unused () : 0;
     if (SEAT_UNITY (seat)->priv->vt < 0)
     {
         l_debug (seat, "Failed to get a VT to run on");