xpra icon
Bug tracker and wiki

Opened 2 weeks ago

#1835 new task

clipboard synchronization with multiple clients

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 2.4
Component: clipboard Version: 2.3.x
Keywords: Cc:

Description

Follow up from #41, similar to #1716 which is for the keyboard.

To support the clipboard with multiple clients, we should be able to switch the clipboard owner automatically when we receive "active" events like mouse clicks and key presses. Probably not focus events since those fire too easily when moving windows or when they get focus automatically, etc.
A dbus method to manually set and lock the clipboard owner could be useful too.

The non-active clients could still receive clipboard packet data, they just would not be able to claim the clipboard ownership and send data until the server decides to switch to them.

For backwards compatibility, we could just re-claim the clipboard whenever a non-active client tries to claim it. For newer clients, we should just tell them that they cannot claim it - possibly re-using the clipboard direction code by making the client aware of the server direction restrictions, see also #1329.

Change History (0)

Note: See TracTickets for help on using tickets.