Since release 1.16, Xorg-server no longer touches VTs if -seat option
with a non-seat0 value is passed, so there's no need to return a non-negative
value in get_vt() for non-seat0 seats.
get_vt (Seat *seat, DisplayServer *display_server)
{
gint vt = -1;
- const gchar *xdg_seat = seat_get_string_property (seat, "xdg-seat");
+ const gchar *xdg_seat = seat_get_name (seat);
+ if (!xdg_seat)
+ xdg_seat = "seat0";
+ if (g_strcmp0 (xdg_seat, "seat0") != 0)
+ return vt;
/* If Plymouth is running, stop it */
if (plymouth_get_is_active () && plymouth_has_active_vt ())
}
if (plymouth_get_is_active ())
plymouth_quit (FALSE);
- if (!xdg_seat)
- xdg_seat = "seat0";
- if (vt < 0 && g_strcmp0 (xdg_seat, "seat0") == 0)
+ if (vt < 0)
vt = vt_get_unused ();
return vt;