[X2Go-User] Configure x2go-client to not forward specific key combinations?

Ulrich Sibiller uli42 at gmx.de
Fri Jul 10 08:52:15 CEST 2020


On Thu, Jul 9, 2020 at 10:54 PM Jonah Benton <jonah at jonah.com> wrote:
>
> Hi folks,
>
> I'm interested in using x2go to:
>
> * connect into several individual accounts/machines at the same time
> * use each remote machine desktop in full screen mode
> * switch between remote full screen desktops using a specific key combination, which would therefore not be sent to the remote
>
> Is this possible?
>
> In my initial perusal of man pages and testing I don't see a way to do what seems to me to be the (probably wrong) solution- instruct the x2go-client (in either launch remote desktop mode, or desktop screen sharing mode) to not capture a specific key combination (like control-alt-right arrow and control-alt-left arrow) so that the parent desktop can handle them (e.g. switch between parent-side virtual desktops).

Well, switching between application windows is a task of your local
window manager or, more precisely, its task switching app. The reason
you cannot do this in fullscreen sessions is that a session running in
fullscreen mode will grab the X server to get ALL keys. That means no
other application will get notified of keypresses. The hotkeys
("keystrokes") will be processed by the nxagent and will not reach the
session. All others will be forwarded to the session. We could add
another keystroke, something like "passthrough" or similar to pass
that keystroke to your local X server. But even then I doubt that
would work at all because usually grabbing prevents such things from
happening. The only other options was to explicitly disable the grab
in fullscreen mode which will probably lead to making your local
session unusable because a window that is covered by the x2go
fullscreen needs some interaction but cannot be activated or similar.

A more pragmatic approach: do not run in fullscreen but use maximized
windows instead. Then your local window manager/task switcher will
happily fullfill your request to switch to another x2go session.

Uli


More information about the x2go-user mailing list