]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Same logic for normal session
authorMichael Terry <michael.terry@canonical.com>
Tue, 24 Sep 2013 17:49:08 +0000 (13:49 -0400)
committerMichael Terry <michael.terry@canonical.com>
Tue, 24 Sep 2013 17:49:08 +0000 (13:49 -0400)
src/seat-surfaceflinger.c

index 03117305bedef2e17ad44311cc66424e5ebd3f07..025093091a811e0f29c5621c8c47bb645bfd7b85 100644 (file)
@@ -67,7 +67,7 @@ seat_surfaceflinger_create_session (Seat *seat)
     session_set_env (session, "XDG_SEAT", xdg_seat);
 
     /* Fake the VT */
-    session_set_env (session, "XDG_VTNR", "1");
+    session_set_env (session, "XDG_VTNR", vt_can_multi_seat() ? "1" : "0");
 
     return session;
 }