xpra icon
Bug tracker and wiki

Opened 7 months ago

Last modified 5 months ago

#1511 new defect

xpra screenshot cobbles windows together

Reported by: Teran McKinney Owned by: Teran McKinney
Priority: minor Milestone: future
Component: server Version: 2.0.x
Keywords: screenshot Cc:

Description

Hi!

I am using v2.0.2-r15657 on CentOS 7. If I take a screenshot of an xpra session with two windows, the one on the right gets covered up by the one on the left.

Does anyone else have this issue? I wonder if there's a window "stacking" algorithm that needs to be tweaked.

Thank you!

-Teran

Attachments (1)

xpra-screenshot.png (6.0 KB) - added by Teran McKinney 7 months ago.
Screenshot with terminal blacked out intentionally. (Left terminal appears fine)

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 months ago by Antoine Martin

Component: clientserver
Milestone: 2.0
Owner: changed from Antoine Martin to Teran McKinney
Priority: majorminor
Version: 2.0.x

Are you using the screenshot sub-command or another method?
Can you attach one example?

The problem with the screenshot command is that we're not in charge of the window stacking, the client is. And so we have no record of what the stacking should be, so we just guess based on the window currently in focus, and put the OR windows on top. See browser/xpra/tags/v2.0.x/src/xpra/x11/server.py.

Changed 7 months ago by Teran McKinney

Attachment: xpra-screenshot.png added

Screenshot with terminal blacked out intentionally. (Left terminal appears fine)

comment:2 Changed 7 months ago by Teran McKinney

Owner: changed from Teran McKinney to Antoine Martin

Hi Antoine,

Thank you for getting back to me.

This is from the xpra screenshot subcommand. Would it be possible to show all windows, regardless of focus? I am hoping to have all windows captured fully. Orientation does not matter that much by comparison, at least for my use case.

I added a screenshot. The solid black section is intentional from my part -- the left xterm rendered fine.

Sincerely,
Teran

comment:3 Changed 7 months ago by Antoine Martin

Milestone: 2.0future

This would require a new flag of some sort as the default behaviour makes sense for most people, and then we would need some new logic to layout the windows side by side.. until it runs out of space (fixed size? 4k?), then what?
The OR and other tooltip / transient-for windows would still need to be layered on top of their parent window, etc.
Tricky, and I just don't have time for it, sorry.
Feel free to play with that one function I linked to, this is where the changes need to go.

comment:4 Changed 5 months ago by Antoine Martin

Owner: changed from Antoine Martin to Teran McKinney
Note: See TracTickets for help on using tickets.