xpra icon
Bug tracker and wiki

Opened 5 months ago

Last modified 5 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.1
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:

  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:

  • 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:

  • 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)

Attachments (2)

gtk_info.txt (3.6 KB) - added by Alex 5 months ago.
gtk_info.py
:4.log (65.8 KB) - added by Alex 5 months ago.
xpra log with -d mouse

Download all attachments as: .zip

Change History (8)

Changed 5 months ago by Alex

Attachment: gtk_info.txt added

gtk_info.py

Changed 5 months ago by Alex

Attachment: :4.log added

xpra log with -d mouse

comment:1 Changed 5 months ago by Alex

Keywords: client mouse position GTK added

comment:2 Changed 5 months ago by Alex

Keywords: linux added

comment:3 Changed 5 months ago by Antoine Martin

Status: newassigned

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 5 months ago by Antoine Martin

Milestone: 4.04.1

comment:5 in reply to:  3 Changed 5 months ago by Alex

Milestone: 4.14.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 5 months ago by Antoine Martin

Milestone: 4.04.1
Note: See TracTickets for help on using tickets.