Code Monkey home page Code Monkey logo

Comments (8)

totaam avatar totaam commented on May 26, 2024

2011-10-20 11:19:33: antoine commented


Added partial support for win32 in r241 (see commit message)

Still need to:

  • add more transformation code for X11 atoms to strings and back
  • maybe allow win32 user to choose which clipboard it shares with? ("PRIMARY" vs "SECONDARY" vs "CLIPBOARD"..)

OSX support is just really tedious, the GTK stuff does not work:

self.selection_owner_set(self._selection):
Failed to acquire local clipboard CLIPBOARD;
will not be able to pass local apps contents of remote clipboard

The apple pasteboards doc seems to have sync methods, but none that would call back to us whenever the clipboard's contents changes so we may have to poll it whenever we get a clipboard message from the server or when the application becomes (in)active. (via NSApplicationWillResignActive / NSApplicationDidBecomeActive)
See PasteboardSynchronize and SetPromiseKeeper.
The only python code I can find that does anything remotely similar is clipboard/carbon.py (now dead link) which uses pyglet.. not keen on adding yet-another-dependency, but may have to.

from xpra.

totaam avatar totaam commented on May 26, 2024

2011-10-20 11:19:33: totaam

from xpra.

totaam avatar totaam commented on May 26, 2024

2012-01-25 09:09:11: totaam commented


Note that there are already problems with the clipboard code and its nested main loop, see #52 and #8, and also:

xpra/platform/clipboard_base.py:232: GtkWarning: IA__gdk_x11_atom_to_xatom_for_display: assertion 
                 `ATOM_TO_INDEX (atom) < virtual_atom_array->len' failed
   gtk.Invisible.do_selection_request_event(self, event)

So it may be worth re-working the whole thing using deferred (ala twisted)

from xpra.

totaam avatar totaam commented on May 26, 2024

2012-08-04 14:31:33: antoine commented


Much improved support (support for gdk atoms on non-X11 platforms) in r1274

The fix for the GtkWarning: IA__gdk_x11_atom_to_xatom_for_display warning was already in 1230 + 1234

Still some work needed on win32, testing on osx (what selections are available there?)

from xpra.

totaam avatar totaam commented on May 26, 2024

2012-08-04 19:17:03: antoine commented


  • r1278 fixes keyboard targets for non-X11 systems
  • r1279 allows win32 users to choose which remote keyboard to sync with via a nice UI menu

As for OSX... it doesn't look like GTK is going to get the fix anytime soon. So if we wanted to support it, we would need to write the code ourselves - yuk.

from xpra.

totaam avatar totaam commented on May 26, 2024

2013-04-18 17:59:53: totaam commented


Closing this outdated ticket:

  • win32 info can be found in #272
  • osx (still TODO) in #318
  • better links an summary in Clipboard

from xpra.

totaam avatar totaam commented on May 26, 2024

2013-04-18 18:00:02: totaam changed resolution from ** to duplicate

from xpra.

totaam avatar totaam commented on May 26, 2024

2017-09-18 05:49:46: antoine

from xpra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.