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

Kamay Xutax posted 1 patch 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231108022139.12503-1-admin@xutaxkamay.com
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Thomas Huth <thuth@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>
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
[PATCH RFC v1 0/1] clipboard sharing implementation for SDL
Posted by Kamay Xutax 1 year ago
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

-- 
2.41.0
Re: [PATCH RFC v1 0/1] clipboard sharing implementation for SDL
Posted by Markus Armbruster 1 year ago
Kamay Xutax <admin@xutaxkamay.com> writes:

> Hello,
>
> This is my first try contributing to QEMU,

Welcome!

> and I would like some advices before merging my patch into master branch.

First piece of advice: it's a busy mailing list, and to get people's
attention, cc: them.  For a patch, you want to cc: maintainers of the
code you patch.  To find them, use scripts/get_maintainer.pl and
exercise judgement.  Let me show you:

    $ scripts/get_maintainer.pl ./0001-*patch

    Gerd Hoffmann <kraxel@redhat.com> (odd fixer:Graphics)
    "Marc-André Lureau" <marcandre.lureau@redhat.com> (odd fixer:Graphics)
    Paolo Bonzini <pbonzini@redhat.com> (maintainer:Meson)
    "Daniel P. Berrangé" <berrange@redhat.com> (reviewer:Meson)
    Thomas Huth <thuth@redhat.com> (reviewer:Meson)
    "Philippe Mathieu-Daudé" <philmd@linaro.org> (reviewer:Meson)
    qemu-devel@nongnu.org (open list:All patches CC here)

Since the patch's Meson part is straightforward, I'd just cc: the two
Graphics people,  I'm doing it in this message, so you don't have to.

[...]