Skip to content

Question: What should i use to make a clipboard manager? #42

@wiiznokes

Description

@wiiznokes

After looking the api for a while, it's still not clear to me what should i use.

I think what i need is the serve function. But how can i know when there are events to serve?

From what i understand, this is the process:

  1. An app decide to copy data to clipboard
  2. It notify the wayland compositor, with a list of tuple with source and mimetype
  3. The clipboard manager should be able to get notify here. It will clone the mimetype and the content of the source
  4. The clipboard manager create a copy event, to become the source of the data
  5. if there is a paste, the clipboard manager will be used as a source

is this correct?

Also, another thing that triggered me is

Primary

The “primary” clipboard.

Working with the “primary” clipboard requires the compositor to support the data-control protocol of version 2 or above.

But i'm not seeing any v2 here

Thank is advance for any responce

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions