Opened 9 months ago
Last modified 3 months ago
#2726 assigned defect
linux client mouse position is wrong if your display isn't at +0+0
Reported by: | Alex | Owned by: | Antoine Martin |
---|---|---|---|
Priority: | major | Milestone: | 4.2 |
Component: | client | Version: | 3.0.x |
Keywords: | linux client mouse position GTK | Cc: |
Description
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:
- You can click something
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:
Attachments (2)
Change History (9)
Changed 9 months ago by
Attachment: | gtk_info.txt added |
---|
comment:1 Changed 9 months ago by
Keywords: | client mouse position GTK added |
---|
comment:2 Changed 9 months ago by
Keywords: | linux added |
---|
comment:3 follow-up: 5 Changed 9 months ago by
Status: | new → 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?
comment:4 Changed 9 months ago by
Milestone: | 4.0 → 4.1 |
---|
comment:5 Changed 9 months ago by
Milestone: | 4.1 → 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. :(
comment:6 Changed 9 months ago by
Milestone: | 4.0 → 4.1 |
---|
comment:7 Changed 3 months ago by
Milestone: | 4.1 → 4.2 |
---|
gtk_info.py