buffet / kiwmi

A fully programmable Wayland Compositor
Mozilla Public License 2.0
612 stars 22 forks source link

Add clipboard (& other stuff) support #31

Closed ghost closed 3 years ago

ghost commented 3 years ago

Closes #26.

I will look into the other stuff (except gamma which is already here) later, I hope it will be this week.


The clipboard seems to work only partly, but AFAICT Sway (1.6.1) behaves the same:

Working testcase:

  1. open two neovims (in two separate terminals)
  2. write something in one
  3. (still in the 1st nvim) enter visual mode, select some text, "+y (copy into clipboard)
  4. switch to the other nvim
  5. "+p (paste from clipboard) (works)

Failing testcase (if you use primary selection = "*y & middle click, it doesn’t fail)

  1. open a neovim and a terminal (alacritty, zsh)
  2. write something in the nvim, copy it into clipboard
  3. switch to the other terminal
  4. shift-insert (doesn’t work)
ghost commented 3 years ago

screencopy & (export) dmabuf have been supported in kiwmi since December 2019. Were you writing that issue w/o checking what was already in?

Anyway, it means that this PR should be ready.

heavyrain266 commented 3 years ago

I'd tested it and I'm able to build it with wlr 0.14.1 and copy stuff between neovim and kakoune in 2 separated terminals. Also screenshots and recording works fine. (recording only works if you run kiwmi from tty)

buffet commented 3 years ago

screencopy & (export) dmabuf have been supported in kiwmi since December 2019. Were you writing that issue w/o checking what was already in?

I was copying from a list I had in some document without thinking about it for a single second, haha.

Anyways, thanks for the PR!

ghost commented 3 years ago

I'd tested it and I'm able to build it with wlr 0.14.1 and copy stuff between neovim and kakoune in 2 separated terminals.

So it seems to be actually a problem of clients, not the compositor. Great!