]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/wincfg.c
The Windows config option to point at an X authority file is only
[PuTTY.git] / windows / wincfg.c
index d3201c4e18e50c2df85714a17776065d3719c88d..389eb38ad38df38ae3e23dc492c5e1be2dbbe93d 100644 (file)
@@ -382,7 +382,7 @@ void win_setup_config_box(struct controlbox *b, HWND *hwndp, int has_help,
      * $XAUTHORITY is not reliable on Windows, so we provide a
      * means to override it.
      */
-    if (backend_from_proto(PROT_SSH)) {
+    if (!midsession && backend_from_proto(PROT_SSH)) {
        s = ctrl_getset(b, "Connection/SSH/X11", "x11", "X11 forwarding");
        ctrl_filesel(s, "X authority file for local display", 't',
                     NULL, FALSE, "Select X authority file",