Description: Since "-nolisten tcp" is now default, use "-listen tcp" instead
 Xorg was previously listening on tcp port 6000 if not told otherwise,
 by using "-nolisten" flag. This is now the default and -nolisten is
 kind of obsolete. To achieve same result, Xorg needs to be passed
 option "-listen tcp" to make it accept connections on normal tcp. 
 This is what this patch tries to do. Closes #785495. 
 .
 gdm3 (3.14.1-7) unstable; urgency=medium
 .
   * Add Conflicts/Replaces: gdm in libgdm1 as well. Closes: #781535.
Author: Josselin Mouette <joss@debian.org>
Bug-Debian: https://bugs.debian.org/781535

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- gdm3-3.14.1.orig/daemon/gdm-server.c
+++ gdm3-3.14.1/daemon/gdm-server.c
@@ -388,6 +388,9 @@ gdm_server_resolve_command_line (GdmServ
         if (server->priv->disable_tcp && ! query_in_arglist) {
                 argv[len++] = g_strdup ("-nolisten");
                 argv[len++] = g_strdup ("tcp");
+        } else {
+                argv[len++] = g_strdup ("-listen");
+                argv[len++] = g_strdup ("tcp");
         }
 
         if (vtarg != NULL && ! gotvtarg) {
