Xpra: Ticket #2438: ubuntu 18.04 gnome scaling

Recently xpra stopped working with Ubuntu 18.04.3 LTS when a Gnome desktop scaling factor other than 100% is used.

The effect is that the interface fills the lower left quarter of the window instead of scaling to fit the entire window. Mouse interactions seem to be mapped to the correct positions, however.

This problem affects all programs, including xcalc and xeyes. I am able to reproduce the problem on multiple machines, under both wayland and xorg, and different display drivers.

$ sudo dpkg-query -l | grep xpra
ii  python2-xpra    3.0-r24095-1  amd64  tool to detach/reattach running X programs
ii  python3-xpra    3.0-r24095-1  amd64  tool to detach/reattach running X programs
ii  xpra            3.0-r24095-1  amd64  tool to detach/reattach running X programs
ii  xpra-html5      3.0-r24095-1  amd64  html5 xpra client


Tue, 08 Oct 2019 01:48:52 GMT - Antoine Martin: status, description changed

How do you set the desktop scaling factor? Does the problem go away if you turn opengl off?


Tue, 08 Oct 2019 05:01:10 GMT - Peter Bleszynski:

In the case of HiDPI displays, I use the Gnome Settings widget to change scale from 100% to 200%.

In the case of non-HiDPI displays, the scale widget is not displayed but I can reproduce the problem by opening dconf-editor, navigating to org.gnome.desktop.interface, and setting the scaling factor to 2. I think this has the same effect as the widget.

Regarding opengl, I was able to reproduce the problem in a "Gnome Flashback (Compiz)" session which appears to not use hardware acceleration. This was on a non-HiDPI display. I will try other machines tomorrow. If there is a better way to disable opengl then please let me know.


Tue, 08 Oct 2019 08:45:14 GMT - Antoine Martin:

Regarding opengl, I was able to reproduce the problem in a "Gnome Flashback (Compiz)" session which appears to not use hardware acceleration

I meant starting xpra with --opengl=no or using the system tray to disable opengl.


Wed, 09 Oct 2019 17:01:27 GMT - Peter Bleszynski:

Starting xpra attach with --opengl=no scales the application (xcalc) to fit the window. The pointer sometimes disappears and is not mapped to the correct xy position.

We were using xpra to scale a Java gui application on a HiDPI display in Gnome 3. Recently the application started to respect the gnome desktop scaling factor under Wayland sessions. I don't understand how this works but it solves the main problem for us.


Mon, 14 Oct 2019 11:54:06 GMT - Antoine Martin: priority changed

Links:

Related changes:

Found an easy workaround: run the client with xsettings=no. The problem is that we're synchronising the GTK property that makes it report adjusted coordinates on the server, then all the calls we make to GTK report values that aren't real. This will need to be filtered out.


Mon, 14 Oct 2019 12:45:08 GMT - Antoine Martin: status changed; resolution set

Fixed in r24133.

This will be included in the next stable update. Until then, the xsettings=no is a viable workaround - works for both client and server command lines.


Sun, 27 Oct 2019 03:52:37 GMT - Antoine Martin:

See also #2464 and #2500.


Sat, 23 Jan 2021 05:51:17 GMT - migration script:

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