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:
- Have a display setup, where there is no display on +0+0, e.g.
XWAYLAND0 connected 1366x768+1920+0
xpra attach
to a random xpra server session
- Try to click something in a window
Expected result:
Result:
- You can't
- Focusing a window with your mouse works though
Workaround:
- Change your display setup to start at +0+0, e.g.
XWAYLAND0 connected 1366x768+0+0
Tested client on debian bullseye/sid:
Tested server:
- all above mentioned versions on debian bullseye/sid
- v3.0.8-r25889 on debian buster
- v3.0.6-r25195 on CentOS 7 (7.7)
- v3.0.8-r25889 on CentOS 7 (7.7)
Sun, 12 Apr 2020 15:27:53 GMT - Alex: attachment set
- attachment
set to gtk_info.txt
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
- keywords
client mouse position GTK added
Sun, 12 Apr 2020 15:34:56 GMT - Alex: keywords changed
Sun, 12 Apr 2020 15:37:29 GMT - Antoine Martin: status changed
- status
changed from new to assigned
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
- milestone
changed from 4.0 to 4.1
Sun, 12 Apr 2020 16:35:17 GMT - Alex: milestone changed
- milestone
changed from 4.1 to 4.0
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
- milestone
changed from 4.0 to 4.1
Thu, 08 Oct 2020 04:55:42 GMT - Antoine Martin: milestone changed
- milestone
changed from 4.1 to 4.2
Sat, 23 Jan 2021 05:59:07 GMT - migration script:
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2726