Xpra: Ticket #972: FullScreen mode in xpra client

It would be nice, if xpra would have possibility to going into full screen mode, when attach to remote shadow session. Like so: xpra attach --fullscreen

Tue, 01 Sep 2015 11:31:00 GMT - Antoine Martin: owner changed

Problem: we don't know in advance if the remote session is the same size as the client's screen. If it's smaller, we could show it with borders (no, we don't so scaling yet), but this is going to require quite a lot of code for managing the offsets. If it's bigger, it is not going to work (would need downscaling).

If the client then resizes its screen, everything breaks...

@akaWolf: thoughts?

Thu, 03 Sep 2015 08:59:01 GMT - akaWolf: owner changed


If it's smaller, there is no other way, than showing it with borders. If it's bigger, we can just show part of screen and show scroll bar for moving the view-able part. For beginning, there is no need to handle resizing of client screen (I can always just restart xpra client).

Fri, 04 Sep 2015 07:58:54 GMT - Antoine Martin: status changed

#976 could also help: we could also upscale the remote display if the dimensions are so far out that the local display would show only a small rectangle in the middle (as is the case when using a 4k display).

Fri, 04 Sep 2015 09:00:55 GMT - akaWolf:

@antoine, yeah, but better not hardcoded, but as enable option.

Wed, 16 Sep 2015 05:04:53 GMT - Antoine Martin: owner, status changed

Done using scaling in r10645 (man page update in r10647), use it like so:

xpra attach --shadow-fullscreen=yes ...

And the remote display will be scaled to the size of the local one (see #976 for scaling implementation details).

Caveat: this does not handle multiple monitors well on all platforms, if any!

I may still try to do unscaled fullscreen, but probably not in this release, in which case the shadow-fullscreen flag may change from a boolean to a no|centered|scaled type of option. This would require window contents to be offset from the top-left corner (somewhat similar to what would be needed for #508 with the "gtk menu" option).

@akaWolf: feedback welcome.

Wed, 16 Sep 2015 08:05:06 GMT - akaWolf: owner changed


yeah, scaling should be an option. for example:

  Scaling        - Scale the host computer's desktop relative to the size of
                   the VNC Viewer application window (Fit | AspectFit |
                   <width>x<height> | <width>x | x<height> | <percentage size>%
                   | <percentage width>%x<percentage height>%), or None to not
                   scale. (default=None)

only one more notice: can xpra also grab all keyboard events in fs mode? see https://bugs.launchpad.net/ubuntu/+source/tightvnc/+bug/584823 remmina and realvnc have such functionality.

Fri, 07 Jul 2017 11:03:59 GMT - Antoine Martin:

Fullscreen now works quite well for "start-desktop" mode (#1567), you can also make your remote shadow window fullscreen with Shift+F11 but we have not addressed the scrolling / scaling issues yet.

See also:

Fri, 14 Jul 2017 13:58:58 GMT - Antoine Martin: attachment set

use scaling to fullscreen fixed size windows

Fri, 14 Jul 2017 14:06:32 GMT - Antoine Martin: milestone changed

The patch above kinda works, but is not ready for merging yet:

Related issues fixed:


Tue, 24 Oct 2017 16:06:28 GMT - Antoine Martin: milestone changed

no time for this, re-scheduling

Thu, 25 Jul 2019 14:16:49 GMT - Antoine Martin: milestone changed

No time.

Sat, 23 Jan 2021 05:11:16 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/972