1. 08 Jan, 2019 1 commit
  2. 07 Jan, 2019 22 commits
  3. 07 Dec, 2018 8 commits
    • Carlos Garnacho's avatar
      core: Add clipboard manager · 250db4fe
      Carlos Garnacho authored
      This is a simple clipboard manager implementation on top of MetaSelection.
      It will inspect the clipboard content for UTF-8 text whenever any other
      selection source claims ownership, and claim it for itself whenever the
      clipboard goes unowned.
      
      The stored text has a maximum size of 4MB, any further content will be
      simply cut down.
      
      This is not quite a X11 clipboard manager, but also works there.
      250db4fe
    • Carlos Garnacho's avatar
      core: Add memory-based selection source · 517d977b
      Carlos Garnacho authored
      This is a simple implementation of a MetaSelectionSource, able to hold a
      single mimetype, provided as GBytes.
      517d977b
    • Carlos Garnacho's avatar
      x11: Add X11 selection management · 469def59
      Carlos Garnacho authored
      This code takes care of both setting up X11 selection sources whenever
      X11 clients claim selection ownership, and claiming selection ownership
      on a mutter X11 window whenever other selection sources claim ownership.
      469def59
    • Carlos Garnacho's avatar
      46db68c3
    • Carlos Garnacho's avatar
      wayland: Add wayland MetaSelectionSource implementation · 0bd711eb
      Carlos Garnacho authored
      This object represents a Wayland selection owner. In order to invert the
      FD direction (we hand an output fd, but want an inpu fd), create an
      intermediate pipe so we can then create a GInputStream on top of it.
      0bd711eb
    • Carlos Garnacho's avatar
      x11: Add X11 MetaSelectionSource implementation · 882bec80
      Carlos Garnacho authored
      This object represents the selection ownership from an X11 client. The
      list of supported targets is queried upfront, so its initialization is
      asynchronous. Requests to read contents from the selection will hand
      a MetaX11SelectionInputStream.
      882bec80
    • Carlos Garnacho's avatar
      core: Add MetaSelection and MetaSelectionSource · 530bc3e7
      Carlos Garnacho authored
      MetaSelectionSource represents a primary/clipboard/dnd selection owner,
      it is an abstract type so wayland/x11/etc implementations can be provided.
      These 3 selections are managed by the MetaSelection object, the current
      selection owners will be set there, and signals will be emitted so the
      previous selection owner can clean itself up.
      
      The actual data transfer is done through the meta_selection_transfer_async()
      call, which will take a GOutputStream and create a corresponding
      GInputStream from the MetaSelectionSource in order to splice them.
      530bc3e7
    • Carlos Garnacho's avatar
      x11: Add X11 selection input/output streams · 2431ebec
      Carlos Garnacho authored
      These are rip off of GTK+ ones, with some adaptions to integrate them in
      mutter event dispatching code and make them easier to use in future
      commits.
      2431ebec
  4. 06 Dec, 2018 9 commits