Skip to content

RFC clipboard sharing implementation for SDL

Kamay Xutax qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 patch 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1ui/sdl2: clipboard sharing implementation for SDLinclude/ui/sdl2.h meson.build ui/meson.build +2 more+162 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC v1 0/1] clipboard sharing implementation for SDL

Hello,

This is my first try contributing to QEMU,
and I would like some advices before merging my patch into master branch.

Current implementation works with qemu-vdagent character device. I decided to ignore QemuClipboardPeer's request function pointer for my current implementation because I couldn't get any clipboard requests from the host with,
so instead I've decided to use SDL event loop with SDL_CLIPBOARDUPDATE and handle the request from here.
I suppose this is the normal behavior, but since I'm not entirely sure I would like some confirmation or advices about it.

I'm getting also a wanring from the scripts/checkpatch.pl since I've added a c file for the implementation,
it asks me to update MAINTAINERS, I would gladly put myself here but I think this decision shouldn't be taken by me.

I'm also up to any corrections if there's errors or something you want to change in the code.

Thank you.

Kamay Xutax (1):
ui/sdl2: clipboard sharing implementation for SDL

 include/ui/sdl2.h   |   5 ++
 meson.build         |   1 +
 ui/meson.build      |   1 +
 ui/sdl2-clipboard.c | 147 ++++++++++++++++++++++++++++++++++++++++++++
 ui/sdl2.c           |   8 +++
 5 files changed, 162 insertions(+)
 create mode 100644 ui/sdl2-clipboard.c
Signature · 1 line
2.41.0