From: Markus Armbruster <armbru@redhat.com>
To: "Jindřich Makovička" <makovick@gmail.com>
Cc: qemu-devel@nongnu.org,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>,
"Eric Blake" <eblake@redhat.com>
Subject: Re: [PATCH v5 2/2] ui/gtk: Turn clipboard flag into runtime option
Date: Tue, 28 Apr 2026 09:30:37 +0200 [thread overview]
Message-ID: <87340f5yoy.fsf@pond.sub.org> (raw)
In-Reply-To: <20260427-gtk-clipboard-v5-2-6968feb31a5d@gmail.com> ("Jindřich Makovička"'s message of "Mon, 27 Apr 2026 22:06:44 +0200")
Jindřich Makovička <makovick@gmail.com> writes:
> - Compile the GTK clipboard support unconditionally
>
> - Introduce GTK clipboard option, defaulting to off
Should the patch be split?
> Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
[...]
> diff --git a/qapi/ui.json b/qapi/ui.json
> index e3da77632a..b2c42a7f57 100644
> --- a/qapi/ui.json
> +++ b/qapi/ui.json
> @@ -1319,6 +1319,9 @@
> #
> # GTK display options.
> #
> +# @clipboard: Enable host-guest clipboard sharing. Defaults to "off".
> +# (Since 11.1)
> +#
Educate ignorant me: what does it mean to share the clipboard?
> # @grab-on-hover: Grab keyboard input on mouse hover.
> #
> # @zoom-to-fit: Zoom guest display to fit into the host window. When
> @@ -1344,7 +1347,8 @@
> # Since: 2.12
> ##
> { 'struct' : 'DisplayGTK',
> - 'data' : { '*grab-on-hover' : 'bool',
> + 'data' : { '*clipboard' : 'bool',
> + '*grab-on-hover' : 'bool',
> '*zoom-to-fit' : 'bool',
> '*show-tabs' : 'bool',
> '*show-menubar' : 'bool',
> diff --git a/qemu-options.hx b/qemu-options.hx
> index 21972f8326..e780bc2ac0 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -2209,9 +2209,9 @@ DEF("display", HAS_ARG, QEMU_OPTION_display,
> " [,window-close=on|off]\n"
> #endif
> #if defined(CONFIG_GTK)
> - "-display gtk[,full-screen=on|off][,gl=on|off][,grab-on-hover=on|off]\n"
> - " [,show-tabs=on|off][,show-cursor=on|off][,window-close=on|off]\n"
> - " [,show-menubar=on|off][,zoom-to-fit=on|off]\n"
> + "-display gtk[,clipboard=on|off][,full-screen=on|off][,gl=on|off]\n"
> + " [,grab-on-hover=on|off][,show-tabs=on|off][,show-cursor=on|off]\n"
> + " [,window-close=on|off][,show-menubar=on|off][,zoom-to-fit=on|off]\n"
> #endif
> #if defined(CONFIG_VNC)
> "-display vnc=<display>[,<optargs>]\n"
> @@ -2295,6 +2295,9 @@ SRST
> drop-down menus and other UI elements to configure and control
> the VM during runtime. Valid parameters are:
>
> + ``clipboard=on|off`` : Enable host-guest clipboard sharing,
> + defaults to "off"
> +
> ``full-screen=on|off`` : Start in fullscreen mode
>
> ``gl=on|off`` : Use OpenGL for displaying
[...]
next prev parent reply other threads:[~2026-04-28 7:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 20:06 [PATCH v5 0/2] Fix and re-enable GTK clipboard Jindřich Makovička
2026-04-27 20:06 ` [PATCH v5 1/2] ui/gtk: Use non-blocking clipboard retrieval Jindřich Makovička
2026-04-27 20:06 ` [PATCH v5 2/2] ui/gtk: Turn clipboard flag into runtime option Jindřich Makovička
2026-04-28 7:03 ` Daniel P. Berrangé
2026-04-28 7:30 ` Markus Armbruster [this message]
2026-04-28 7:48 ` Daniel P. Berrangé
2026-04-28 9:55 ` Markus Armbruster
2026-04-28 8:03 ` [PATCH v5 0/2] Fix and re-enable GTK clipboard Marc-André Lureau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87340f5yoy.fsf@pond.sub.org \
--to=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=eblake@redhat.com \
--cc=makovick@gmail.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.