xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 4 years ago

Closed 4 years ago

Last modified 12 months ago

#1732 closed enhancement (worksforme)

Overriding target screen for attach

Reported by: Peter Gervai Owned by: Peter Gervai
Priority: minor Milestone: 2.3
Component: server Version: 2.2.x
Keywords: Cc:

Description (last modified by Antoine Martin)

[As per IRC] it would be useful to be able to override the target screen of the windows "attach" physically display. You said that xpra tries to preserve the screen the window was last attached on, which is not always desirable.

The context is moving windows between separate screens (eg. from :0.0 to :0.1).

Change History (7)

comment:1 Changed 4 years ago by Peter Gervai

Component: androidserver
Priority: majorminor

comment:2 Changed 4 years ago by Antoine Martin

Description: modified (diff)
Milestone: 2.3
Status: newassigned

First thing to fix is to honour the actual screen if one is specified:

DISPLAY=:0.1 xpra attach ..

Should not end up showing any windows on :0.0, even if they were shown there previously. (ideally detecting the screen vs display without parsing the $DISPLAY string)

comment:3 Changed 4 years ago by Peter Gervai

Related to #1369 which touches the other side of moving windows between physical monitors / screens / displays.

comment:4 Changed 4 years ago by Peter Gervai

To detail a bit more what I have on mind:

xpra control :666 setoption window.1.target ':0.0'


xpra retarget :666 window.3 ':0.1'
xpra retarget :666 window.4 ':1'

or similar.

comment:5 Changed 4 years ago by Antoine Martin

Owner: changed from Antoine Martin to Peter Gervai
Status: assignednew

Fixes (lots of small things) and updates:

  • r17818: env var to override current behaviour, ie: XPRA_HONOUR_SCREEN_MAPPING=0 xpra attach ... to disable setting the screen the window will appear on
  • r17820: control command to set the screen the window will be shown on for a particular user, syntax: client-property WINDOW-ID UUID property-name value [type], ie: xpra control :10 client-property 1 9a6b367ff56bd8348424399fdd975d95d633e822 screen 0 int, you can find your uuid by running: python xpra/os_util.py or with "xpra info" after connecting.
  • r17821: default to not setting the screen if the $DISPLAY has one already (ie: :20.1)

@grin: does that work for you?

comment:6 Changed 4 years ago by Antoine Martin

Resolution: worksforme
Status: newclosed

comment:7 Changed 12 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1732

Note: See TracTickets for help on using tickets.