X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/8def70c3ec6f81f95673c0de67a75b5a6b2e9e1c..32f46b5c30131a9ba5bbadd28da6425434aca47f:/windows/wincfg.c diff --git a/windows/wincfg.c b/windows/wincfg.c index 516f0a3d..389eb38a 100644 --- a/windows/wincfg.c +++ b/windows/wincfg.c @@ -382,9 +382,11 @@ 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. */ - 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", - HELPCTX(ssh_tunnels_xauthority), - dlg_stdfilesel_handler, I(offsetof(Config, xauthfile))); + 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", + HELPCTX(ssh_tunnels_xauthority), + dlg_stdfilesel_handler, I(offsetof(Config, xauthfile))); + } }