From bce5829c56a19ad4f40a8371deea39e3438c462c Mon Sep 17 00:00:00 2001 From: =?utf8?q?La=C3=A9rcio=20de=20Sousa?= Date: Thu, 13 Aug 2015 10:53:02 -0300 Subject: [PATCH] Drop Xorg option -sharevts. It's no longer required for non-seat0 X servers since xorg-server release 1.16. See http://cgit.freedesktop.org/xorg/xserver/commit/?id=46cf2 --- src/seat-xlocal.c | 2 -- src/x-server-local.c | 13 ------------- src/x-server-local.h | 2 -- 3 files changed, 17 deletions(-) diff --git a/src/seat-xlocal.c b/src/seat-xlocal.c index 74cf183e..b930ba32 100644 --- a/src/seat-xlocal.c +++ b/src/seat-xlocal.c @@ -198,8 +198,6 @@ create_x_server (Seat *seat) x_server_local_set_layout (x_server, layout); x_server_local_set_xdg_seat (x_server, seat_get_name (seat)); - if (strcmp (seat_get_name (seat), "seat0") != 0) - x_server_local_set_sharevts (x_server, TRUE); config_file = seat_get_string_property (seat, "xserver-config"); if (config_file) diff --git a/src/x-server-local.c b/src/x-server-local.c index b6a55aa9..caff9b46 100644 --- a/src/x-server-local.c +++ b/src/x-server-local.c @@ -40,9 +40,6 @@ struct XServerLocalPrivate /* Value for -seat argument */ gchar *xdg_seat; - /* TRUE if should share VT with other X server */ - gboolean sharevts; - /* TRUE if TCP/IP connections are allowed */ gboolean allow_tcp; @@ -218,13 +215,6 @@ x_server_local_set_xdg_seat (XServerLocal *server, const gchar *xdg_seat) server->priv->xdg_seat = g_strdup (xdg_seat); } -void -x_server_local_set_sharevts (XServerLocal *server, gboolean sharevts) -{ - g_return_if_fail (server != NULL); - server->priv->sharevts = sharevts; -} - void x_server_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp) { @@ -473,9 +463,6 @@ x_server_local_start (DisplayServer *display_server) if (server->priv->xdg_seat) g_string_append_printf (command, " -seat %s", server->priv->xdg_seat); - if (server->priv->sharevts) - g_string_append (command, " -sharevts"); - write_authority_file (server); if (server->priv->authority_file) g_string_append_printf (command, " -auth %s", server->priv->authority_file); diff --git a/src/x-server-local.h b/src/x-server-local.h index 23c1d9a9..7ed5732c 100644 --- a/src/x-server-local.h +++ b/src/x-server-local.h @@ -51,8 +51,6 @@ void x_server_local_set_layout (XServerLocal *server, const gchar *layout); void x_server_local_set_xdg_seat (XServerLocal *server, const gchar *xdg_seat); -void x_server_local_set_sharevts (XServerLocal *server, gboolean sharevts); - void x_server_local_set_allow_tcp (XServerLocal *server, gboolean allow_tcp); void x_server_local_set_xdmcp_server (XServerLocal *server, const gchar *hostname); -- 2.39.2