xpra icon
Bug tracker and wiki

Changes between Version 23 and Version 24 of Clipboard


Ignore:
Timestamp:
01/11/17 15:44:42 (4 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Clipboard

    v23 v24  
    88== Introduction ==
    99
     10This feature allows you to copy from outside the xpra session and paste inside it, and vice versa.
     11For various reasons, this doesn't always work quite as well as expected - see below for more details.
     12
     13The {{{clipboard-direction}}} option (see #276) can be used to restrict the direction of the clipboard data flows. This setting is also available from the system tray menu.
     14}}}
     15
     16
     17{{{#!div class="box"
     18== Technical Constraints ==
    1019Clipboard support is an ongoing struggle.
    11 One common difficulty with Windows clients is that these platforms only have a single (*) clipboard whereas X11 has three ({{{CLIPBOARD}}}, {{{PRIMARY}}} and {{{SECONDARY}}}), and therefore we need to choose which one to exchange with.
     20
     21One common difficulty with Mac OSX and MS Windows clients is that these platforms only have a single (*) clipboard whereas X11 has three ({{{CLIPBOARD}}}, {{{PRIMARY}}} and {{{SECONDARY}}}), and therefore we need to choose which one to exchange with.
    1222On MS Windows, the OS pulls clipboard data as soon as we claim ownership of the selection (see workaround in r3051 + r3075)
    1323On OSX, we have to use polling to see client-side changes (see #11)
    1424
    15 A more technical issue is to do with the way the clipboard hooks are implemented, using native C code ([/browser/xpra/trunk/src/xpra/gtk_common/gdk_atoms.pyx xpra.gtk_common.gdk_atoms] via Cython), which is imported in most platform specific clipboard implementations and also the [/browser/xpra/trunk/src/xpra/gtk_common/nested_main.py nested main loop] code.
     25The xpra clibboard code is also problematic: the [/browser/xpra/trunk/src/xpra/gtk_common/nested_main.py nested main loop] code is known to cause serious problems on some platforms.
    1626}}}
    1727
     
    3343}}}
    3444
     45
    3546{{{#!div class="box"
    3647== Testing the clipboard ==
     
    4859Note: on win32, you will need to change the clipboard currently in use to match the one you modify, this must be done before changing the value to ensure it is propagated.
    4960
    50 Debugging: with version 0.12 onwards, just add "{{{-d clipboard}}}" to your command line (with older versions set the environment variable: "{{{XPRA_CLIPBOARD_DEBUG=1}}}")
     61Debugging: just add "{{{-d clipboard}}}" to your xpra command line.
    5162
    52 Starting with v0.9.0 there is also a tool which can be used to diagnose clipboard behaviour:
     63We also ship a tool which can be used to diagnose clipboard behaviour:
    5364* {{{GTK_Clipboard_Test.exe}}} on win32
    5465* {{{gtk_view_clipboard.py}}} on posix
    55 see [/ticket/272#comment:5 #272 comment:5] for screenshots and help with that.
     66see [/ticket/272#comment:5 #272 comment:5] for screenshots and help with this tool.
    5667}}}
    5768