Xpra: Ticket #2726: linux client mouse position is wrong if your display isn't at +0+0

Aparently there seems to be a bug in handling/mapping mouse coordinates.

There was an old bug on MICROS~1 #980 similar to this one.

MWE:

  1. Have a display setup, where there is no display on +0+0, e.g. XWAYLAND0 connected 1366x768+1920+0
  2. xpra attach to a random xpra server session
  3. Try to click something in a window

Expected result:

Result:

Workaround:

Tested client on debian bullseye/sid:

Tested server:



Sun, 12 Apr 2020 15:27:53 GMT - Alex: attachment set

gtk_info.py


Sun, 12 Apr 2020 15:29:27 GMT - Alex: attachment set

xpra log with -d mouse


Sun, 12 Apr 2020 15:34:34 GMT - Alex: keywords set


Sun, 12 Apr 2020 15:34:56 GMT - Alex: keywords changed


Sun, 12 Apr 2020 15:37:29 GMT - Antoine Martin: status changed

Have a display setup, where there is no display on +0+0, e.g. XWAYLAND0 connected 1366x768+1920+0

How do I do that?


Sun, 12 Apr 2020 16:09:59 GMT - Antoine Martin: milestone changed


Sun, 12 Apr 2020 16:35:17 GMT - Alex: milestone changed

Replying to Antoine Martin:

Have a display setup, where there is no display on +0+0, e.g. XWAYLAND0 connected 1366x768+1920+0

How do I do that?

Hmm, good question.

In my case (sway wm on wayland) it's one line in ~/.config/sway/config:

output LVDS-1 pos 1920 0 res 1366x768

I've tried to simulate it on Xorg, but xrandr doesn't let me change screen size without changing output mode. :(


Tue, 14 Apr 2020 13:45:21 GMT - Antoine Martin: milestone changed


Thu, 08 Oct 2020 04:55:42 GMT - Antoine Martin: milestone changed


Sat, 23 Jan 2021 05:59:07 GMT - migration script:

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