-
-
Notifications
You must be signed in to change notification settings - Fork 223
fix/improve MS Windows clipboard handling #272
Description
Issue migrated from trac ticket # 272
component: platforms | priority: major | resolution: fixed | keywords: clipboard win32
2013-02-28 09:59:16: antoine created the issue
Split from #11. Please see Clipboard first.
it should be possible to keep track of the last "clipboard" ("primary", "secondary" or "clipboard") that the server claims to own and copy from that one when the client requests the clipboard contents (or when it requests the list of formats). Beware: there may be races here if we use a naive implementation... we could end up requesting data in a format which is not supported by the last clipboard token.
This should take of copy+paste from server to client.client to server: we can simply claim that we own all three clipboards at once, when the server requests the contents we give it the only contents we have. (this direction is easier)
There may well be some cases where this causes problems, or where the user chooses to sync with a single clipboard, so we probably want to add a new UI and command line option (win32 clients only):
--clipboard-sync=primary|secondary|clipboard|all"all" would be the new "auto" mode.