xpra icon
Bug tracker and wiki

Opened 4 months ago

Last modified 5 weeks ago

#2697 new defect

Right click ends up on the screen edge

Reported by: stdedos Owned by: Antoine Martin
Priority: major Milestone: 4.1
Component: client Version: 3.0.x
Keywords: Cc:

Description (last modified by stdedos)

In some cases (I assume custom right-click menus) I see this for windows on my WQHD monitor:


Unfortunately, I don't have more info data than these:

"Xpra-Python3-x86_64_4.0-r25894\xpra_cmd" attach ssh://user@ip/20 --ssh="plink -ssh -agent" --modal-windows=no --title="@title@ on @hostname@/@server-display@" --opengl=no

2020-04-01 16:20:57,638 Xpra GTK3 client version 4.0-r25894 64-bit
2020-04-01 16:20:57,640  running on Microsoft Windows 10
2020-04-01 16:20:57,713 Warning: failed to import opencv:
2020-04-01 16:20:57,714  No module named 'cv2'
2020-04-01 16:20:57,714  webcam forwarding is disabled
2020-04-01 16:20:58,418 GStreamer version 1.16.2 for Python 3.8.2 64-bit
2020-04-01 16:20:58,696 keyboard layout code 0x409
2020-04-01 16:20:58,697 identified as 'United States - English' : us
2020-04-01 16:20:59,053  keyboard settings: layout=us
2020-04-01 16:20:59,056  desktop size is 4160x1440 with 1 screen:
2020-04-01 16:20:59,056   Default (1100x381 mm - DPI: 96x96) workarea: 4160x1400
2020-04-01 16:20:59,056     Generic PnP Monitor 1600x900 (309x174 mm - DPI: 131x131) workarea: 1600x860
2020-04-01 16:20:59,056     C32JG5x 2560x1440 at 1600x0 (697x392 mm - DPI: 93x93) workarea: 2560x1400

Xenial server $ xpra --version
xpra v3.0.8-r25767

Since #2642's spam is toooo damn high

Attachments (6)

xpra_right-click_ends-up-on-the-screen-edge.png (83.8 KB) - added by stdedos 4 months ago.
redact-xpra-2697.log (137.1 KB) - added by stdedos 4 months ago.
redact-xpra-2697-appears-lower.log (103.1 KB) - added by stdedos 3 months ago.
xpra-2697-appears-lower.png (69.1 KB) - added by stdedos 3 months ago.
xpra-2697-pycharm-click-drag.png (5.7 KB) - added by stdedos 3 months ago.
Screenshot 2020-07-10 14:47:39.png (132.2 KB) - added by stdedos 5 weeks ago.

Download all attachments as: .zip

Change History (17)

comment:1 Changed 4 months ago by stdedos

Description: modified (diff)

comment:2 Changed 4 months ago by Antoine Martin

Owner: changed from Antoine Martin to stdedos

Can you please include the -d geometry log output? (server log, running both server and client with the flag)

Changed 4 months ago by stdedos

Attachment: redact-xpra-2697.log added

comment:3 Changed 4 months ago by stdedos

Owner: changed from stdedos to Antoine Martin

There you go

comment:4 Changed 4 months ago by Antoine Martin

Owner: changed from Antoine Martin to stdedos

I don't see anything suspicious in there. I can't be certain which window id is the one on the right hand side, but this looks like it could be the one:

initial X11 position and size: requested((3803, 639, 347, 138),
    {'position': (3803, 639), 'gravity': 1, 'minimum-size': (136, 39)})=(3803, 639, 347, 138)

And it looks to me like we're just honouring the position requested by the window using its WM_NORMAL_HINTS.

Can you attach the server's -d window,metadata,x11,geometry log output of just when the problematic window shows up - or at least tell me what time to look for. (because that's going to be quite verbose).

r26055 fixes a minor bug, r26056 improves the debug logging.

comment:5 in reply to:  4 Changed 4 months ago by stdedos

Replying to Antoine Martin:

Can you attach the server's -d window,metadata,x11,geometry log output of just when the problematic window shows up - or at least tell me what time to look for. (because that's going to be quite verbose).

I'm sorry, that must have slipped through the cracks.

Is this a client or a server change?
If it's a server one, does it have any dependencies? Because Xenial is stuck on v3 ...

comment:6 Changed 4 months ago by Antoine Martin

r26055 was wrong anyway and got reverted: #2734.
So only the log.

comment:7 Changed 3 months ago by Antoine Martin

Milestone: 4.04.1

comment:8 Changed 3 months ago by stdedos

There you go. This is how it looks like when I right-click:


(A second error here: Sublime underneath somehow is getting hover-focus)

Changed 3 months ago by stdedos

Changed 3 months ago by stdedos

Attachment: xpra-2697-appears-lower.png added

comment:9 Changed 3 months ago by stdedos

So, for this layout:

http://xpra.org/trac/attachment/ticket/2658/xpra-geometry-ApplicationFrameHost_2020-03-20_09-17-15.png

On the right monitor, the image is the same as the description
For the left monitor, the image is the same as the comment above

comment:10 Changed 3 months ago by stdedos

Owner: changed from stdedos to Antoine Martin

Maybe (?) related to this:

I click-drag on the text area (to select), and instead my mouse ends up dragging the source file tabs. 😕


Changed 3 months ago by stdedos

comment:11 Changed 5 weeks ago by stdedos

I think we have discussed it somewhere else too, but I cannot remember where

For Server:

$ xrandr
Screen 0: minimum 8 x 8, current 6400 x 1440, maximum 32767 x 32767
DP-0 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 597mm x 336mm
   2560x1440     59.95*+
   1920x1200     59.88  
   1920x1080     60.00    59.94    50.00    23.97    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x1200     60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 connected 1920x1080+2560+180 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected 1920x1080+4480+180 (normal left inverted right x axis y axis) 527mm x 296mm
   1920x1080     60.00*+
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
DP-5 disconnected (normal left inverted right x axis y axis)

and

Client (same computer)

$ xpra --version
xpra v3.0.10-r26630
$ xrandr
xrandr: Failed to get size of gamma for output screen
Screen 0: minimum 1 x 1, current 6400 x 1440, maximum 7680 x 4320
screen connected 6400x1440+0+0 0mm x 0mm
   7680x4320      0.00  
   5120x1152     27.78  
   6400x1440     17.79* 

"File" Menu ends up in weird places:

No image "39.png" attached to Screenshot 2020-07-10 14:47
(left-most monitor)

I have seen that, if the window is in the server's middle monitor, the right-click can very well end-up on the right-most monitor.

What makes this even weird is that, as soon as I started writing this (and attempted to try to get a screenshot), it "magically" fixed itself!!!

The above screenshot now looks as it should: File menu glued at the 'File label, Unity Deskbar' intersection.
...

Changed 5 weeks ago by stdedos

Note: See TracTickets for help on using tickets.