<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi all,</p>
    <p>Windows 10, x2goclient 4.1.2.2</p>
    <p>When resuming a "paused" x2Go session, x2goclient is using the
      wrong X-Server settings. I have configured my x2goclient with the
      following settings for X.Org Server settings:<br>
    </p>
    <p><br>
    </p>
    <p><u><b>X.Org Server settings: </b></u><br>
      <font size="+1"><tt>[X] use custom X-Server </tt><tt><br>
        </tt><tt><br>
        </tt><tt>Executable: C:/Program Files
          (x86)/x2goclient/VcXsrv/vcxsrv.exe </tt><tt><br>
        </tt><tt><br>
        </tt><tt>[_] start X-Server on X2Go Client start </tt><tt><br>
        </tt><tt><br>
        </tt><tt>Window mode: -screen 0 %wx%h -notrayicon -clipboard
          -keyhook -nowinkill -nopn -silent-dup-error </tt><tt><br>
        </tt><tt>Fullscreen mode: -fullscreen -notrayicon -clipboard
          -keyhook -nowinkill -nopn -silent-dup-error </tt><tt><br>
        </tt><tt>Single application: -multiwindow -notrayicon -clipboard
          -keyhook -nowinkill -nopn -silent-dup-error </tt><tt><br>
        </tt><tt>Whole display: -nodecoration -notrayicon -clipboard
          -keyhook -nopn -silent-dup-error -screen 0 @ </tt></font><br>
    </p>
    <p>My x2goclient <b>session</b> is configured as:</p>
    <p><u><b>Session preferences: Input/Output</b></u> <br>
      <font size="+1"><tt>[_] Fullscreen </tt><tt><br>
        </tt><tt>[_] Custom Width (greyed out 3696) Height (greyed out
          2160) </tt><tt><br>
        </tt><tt>[X] Use whole display [_] Maximum available Display: 2
        </tt></font><br>
    </p>
    <p>When I start a <b>new</b> x2Go session, it correctly runs the
      X-Server with the "Whole display" command:</p>
    <p><font size="+1"><tt>" C:\Program Files
          (x86)\x2goclient\VcXsrv\vcxsrv.exe" -nodecoration notrayicon
          clipboard keyhook nowinkill nopn silent-dup-error screen 0 @2
          :0 </tt></font><br>
    </p>
    <p>But if I then "<b>pause</b>" this session and <b>reconnect</b>,
      x2goclient uses the "Window mode" command line options instead:</p>
    <p><font size="+1"><tt>" C:\Program Files
          (x86)\x2goclient\VcXsrv\vcxsrv.exe" -screen 3696x2160
          notrayicon clipboard keyhook nowinkill nopn silent-dup-error
          :0 </tt></font><br>
    </p>
    <p>This is really annoying. I suspect this has something to do with
      the code around <a moz-do-not-send="true"
href="https://code.x2go.org/gitweb?p=x2goclient.git;a=blob;f=src/onmainwindow.cpp;hb=60be3ad99ad61b09c9741f75954dff793c045ed8#l4442">line
        4442 in onmainwindow.cpp</a>, but I've not been able to figure
      out the exact details yet.</p>
    <p><br>
    </p>
    <p>I've tried to debug this by runningĀ  x2goclient.debug.exe
      --debug, but there's an issue here. When running the debug
      version, the "Use whole display" option is not available in the
      session settings tab:</p>
    <p><u><b>Session Input/Output with x2goclient.debug.exe --debug: </b></u><br>
      <font size="+1"><tt>[_] Fullscreen </tt><tt><br>
        </tt><tt>[_] Custom Width (greyed out 3696) Height (greyed out
          2160) </tt><tt><br>
        </tt><tt>[_] Maximum available </tt></font><tt><br>
      </tt><tt> </tt></p>
    <tt> </tt>
    <p>See the "Use whole display" option missing in front of the
      "Maximum available" radio box. It's almost as if the debug build
      included in this distribution is of an older x2goclient version
      (but it shows the correct version number in the About dialog).</p>
    <p>I hope that based on the provided information a fix can be
      created for this issue?</p>
    <p>Regards, Maarten<br>
    </p>
  </body>
</html>