File gdm-tcp-listen.patch of Package gdm.15269
diff --git a/daemon/gdm-server.c b/daemon/gdm-server.c
index 91a04e6..5373db7 100644
--- a/daemon/gdm-server.c
+++ b/daemon/gdm-server.c
@@ -355,8 +355,13 @@ gdm_server_resolve_command_line (GdmServer *server,
query_in_arglist = TRUE;
}
- if (server->priv->disable_tcp && ! query_in_arglist) {
- argv[len++] = g_strdup ("-nolisten");
+ /* If we were compiled with Xserver >= 1.17 we need to specify
+ * '-listen tcp' as the X server dosen't listen on tcp sockets
+ * by default anymore. In older versions we need to pass
+ * -nolisten tcp to disable listening on tcp sockets.
+ */
+ if (!server->priv->disable_tcp && ! query_in_arglist) {
+ argv[len++] = g_strdup ("-listen");
argv[len++] = g_strdup ("tcp");
}