Xpra: Ticket #1369: Sync window position between clients

split from #41,

I would be nice-to-have to be able to sync window position between clients, and be able to specify an offset at the client. This would make it possible to simulate having two monitors connected to the same computer; when in fact they're two different machines, with xpra syncing the windows. (i.e. When you move a window on the one monitor towards the other, it would appear to move between the two monitors.)

eg: I could run client on workstation & laptop, and window position is sync'ed but windows only appear on one display at a time, eg workstation at +0+0, and laptop at -1440+0.



Tue, 22 Nov 2016 06:16:56 GMT - Antoine Martin: status changed

This could be done as part of #1368 which is related.

We could add new parameters to the sharing command line switch to control where new clients are added to the server-side virtual display: on-top (as done currently), automatic side-by-side, custom offset, etc

The big difficulty for implementing the "windows that appear to move from one client to another" is that the windowing systems (ie: the client side window manager on Linux) will clamp window positions to the desktop, so we would have to add code to hide the windows until the offset makes them land within the client's desktop area. Another difficulty is arbitration of positions and avoiding loops: each client window manager may decide to clamp and slightly move a window which would then be forwarded to the other client... which could do the same thing, ending up in a loop.


Tue, 13 Mar 2018 05:28:52 GMT - Antoine Martin: milestone changed


Wed, 20 Mar 2019 05:06:15 GMT - Antoine Martin: milestone changed

Milestone renamed


Sun, 02 Feb 2020 18:41:56 GMT - Dennis Schridde: cc changed


Sun, 02 Feb 2020 18:45:03 GMT - Dennis Schridde:

Maybe Synergy (1,2) can be of help / be interfaced with to implement this? They implement mouse and keyboard sharing across computers.

(1): https://symless.com/synergy (2): https://github.com/symless/synergy-core


Mon, 03 Feb 2020 02:46:34 GMT - Antoine Martin:

No, synergy does not help us here.

BTW, if you want to use something based on synergy, barrier is a much better option, as it is truly open-source / free software.


Sat, 08 Feb 2020 20:28:47 GMT - Norman Rasmussen:

Replying to Dennis Schridde:

Maybe Synergy (1,2) can be of help / be interfaced with to implement this?

Using Synergy (and now barrier) was always my plan to share mouse and keyboard between computers. This ticket is specifically about making windows appear to seamlessly move between displays (in the same way that synergy/barrier do for mouse and keyboard)


Thu, 05 Mar 2020 10:53:03 GMT - Antoine Martin: milestone changed

See also #2666


Thu, 08 Oct 2020 04:53:24 GMT - Antoine Martin: milestone changed


Sat, 23 Jan 2021 05:22:22 GMT - migration script:

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