Xpra: Ticket #2457: xpra start gnome-terminal window "is jumpy"

$ xpra version
xpra for python 2.7 is not installed
 retrying with python3
3.0-r24095
$ lsb_release -rd
Description:	Ubuntu 16.04.6 LTS
Release:	16.04

client:

Windows 10
Xpra GTK3 client version 4.0-r24195 64-bit

For a lack of .... any good description, I'll let the video explain the issue :-) It seems to "hate more" being "widened" than being "heightened".



Sat, 19 Oct 2019 10:24:39 GMT - stdedos: attachment set


Sun, 20 Oct 2019 11:03:13 GMT - Antoine Martin: owner, description changed

Do you have the client and server output? If possible, please attach the -d geometry flag to both client and server.


Mon, 21 Oct 2019 09:35:49 GMT - stdedos: attachment set


Mon, 21 Oct 2019 09:40:03 GMT - stdedos: attachment set


Mon, 21 Oct 2019 09:43:36 GMT - stdedos:

I would guess that the "plain" one does not contain anything (many connections and disconnections, I'd assume the files are lost already)

-d geometry is extremely chatty, apologies for that. I am attaching files instead.


Are there "other variables" available at log-file = display-$DISPLAY.log configuration option?

Maybe I'd like to add $timestamp also? Then I could have some history (as long as PC does not shutdown itself, at least)


Mon, 21 Oct 2019 20:01:59 GMT - stdedos: owner changed


Wed, 30 Oct 2019 15:45:45 GMT - Antoine Martin: owner, priority, status changed

According to mailing list: Beta problems some geometry problems are present in 4.0-r24287, but not in 3.0-r24039.


Sun, 03 Nov 2019 16:21:20 GMT - Antoine Martin:

Maybe I'd like to add $timestamp also? Then I could have some history (as long as PC does not shutdown itself, at least)

r24348 adds TIMESTAMP (uppercase to keep things more consistent)

As for the geometry bug:

and the downward spiral begins. Turning off the size apply_maxsize_hints workaround using XPRA_WIN32_GEOMETRY=0 does not help. (flag renamed to XPRA_WIN32_MAX_SIZE_HINT in r24356)

With r24357:

Differences are expected (ie: we can't set the max-size on win32 because then the maximize buttons end up greyed out) My guess is that this is a GTK3 bug, maybe it is taking into account the window borders or something. The new window size is smaller by 4x11.


Mon, 04 Nov 2019 14:53:40 GMT - Antoine Martin:

I thought it might be related to the wayland changes in r23305 (#2243), but using the window geometry gives the same / similar result.

r24377 adds a simple test gtk window script.


Mon, 04 Nov 2019 15:39:43 GMT - Antoine Martin:

Confirmed as a GTK3 bug: r24378 + r24379 allows us to run the test script with both python2 / gtk2 and python3 / gtk3. The problematic values only occur with GTK3, on Wayland and win32. I'm really not sure how to fix this. We rely on the toolkit for the geometry, buggy geometry breaks everything.


Mon, 04 Nov 2019 16:09:22 GMT - stdedos:

Can we temporarily hardwire the GTK version for the v4.0 branch? Or: Which "most up-to-date" client does not use GTK3? is it "Xpra-Python2-x86_64_3.0.2-r24303.zip" this one?

The problematic values only occur with GTK3, on Wayland and win32.

I am not on Wayland (I think), since I have Ubuntu 16.04.6? So, why am I affected? Or is it GTK3 AND (Wayland OR WIN32)?


Mon, 04 Nov 2019 16:35:08 GMT - Antoine Martin: owner, status changed

Fixed in r24380, backport in r24381: GTK3 requires a widget to apply the window size hints correctly. The test script has also been updated to return the correct values.

@stdedos: there are 4.0 and 3.0.2 mswindows beta builds with this fix here: https://xpra.org/beta/windows. Please close if that works for you.


Mon, 04 Nov 2019 16:37:01 GMT - Antoine Martin:

Which "most up-to-date" client does not use GTK3?

The python2 builds use GTK2. The python3 builds use GTK3. We have no choice there.

So, why am I affected?

Because your mswindows client uses GTK3:

Xpra GTK3 client version 4.0-r24195 64-bit

Python3 + GTK3 is the new default since version 3.


Wed, 06 Nov 2019 14:56:31 GMT - Antoine Martin: status changed; resolution set

3.0.2 has been released with this fix.

There is now a similar ticket for window position: #2475.


Thu, 07 Nov 2019 07:41:19 GMT - Antoine Martin:

It's interesting to note that Gtk.Window.set_geometry_hints documentation states that: Since 3.20 this argument is ignored and GTK behaves as if None was set.


Thu, 07 Nov 2019 15:13:16 GMT - Antoine Martin:

Fixed properly in r24403, see ticket:2475#comment:12.


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

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