xpra icon
Bug tracker and wiki

Opened 5 months ago

Last modified 3 months ago

#2094 assigned enhancement

Add display property to control video region

Reported by: Nathan Hallquist Owned by: Antoine Martin
Priority: major Milestone: future
Component: encodings Version: 2.4.x
Keywords: Cc:

Description

In ticked #2077 Antoine suggested that an X window property to specify the video encoding region could be added.

Initially, I thought I could use dbus and not open this ticket, but I found that dbus does not work right with ssh -Y (or with vglconnect), whereas X window properties work great.

I would, therefore, very much like to be able to do this using x window properties:

xpra control :250 video-region-detection $N false
xpra control :250 video-region-enabled $N true
xpra control :250 reset-video-region $N 
xpra control :250 video-region $N 3 29 1320 950

Change History (2)

comment:1 Changed 5 months ago by Antoine Martin

Status: newassigned

Initially, I thought I could use dbus and not open this ticket, but I found that dbus does not work right with ssh -Y (or with vglconnect), whereas X window properties work great.

The xpra server will spawn its own dbus server, you need to find its address before you can talk to it:
ie: you can run this from within the xpra session:

env | grep DBUS
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-rOlSzG0tlW,guid=f214c4b8a5ba96be152814135c2dd605

Or this from any terminal:

xpra info | grep -i env.DBUS

Then you can use it:

$ DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-rOlSzG0tlW,guid=f214c4b8a5ba96be152814135c2dd605 dbus-monitor 

If this feature is still needed, I would rather have a single window property to control everything, it could be named _XPRA_VIDEO_REGION.
When set, it would be used and video region detection would be turned off.
Simply removing the window property would revert to the default behaviour.
(if really needed, we could support a [0, 0, 0, 0] region to turn off video region)

comment:2 Changed 3 months ago by Antoine Martin

Milestone: 2.5future

#2113 improves the video region detection, and comment:1 provides a workaround for dbus.
So, I'm re-scheduling this.

Note: See TracTickets for help on using tickets.