All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Fix and re-enable GTK clipboard
@ 2026-04-26  7:52 Jindřich Makovička
  2026-04-26  7:52 ` [PATCH v3 1/2] ui/gtk: Use non-blocking clipboard retrieval Jindřich Makovička
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jindřich Makovička @ 2026-04-26  7:52 UTC (permalink / raw)
  To: qemu-devel
  Cc: Marc-André Lureau, Paolo Bonzini, Daniel P. Berrangé,
	Philippe Mathieu-Daudé, Pierrick Bouvier, Jindrich Makovicka

The following patches change blocking clipboard retrieval function
calls in gtk-clipboard.c to non-blocking variants using callbacks to
avoid UI lockup. It is a follow-up to the patch proposed in the GitLab
issue

https://gitlab.com/qemu-project/qemu/-/work_items/1150

This version adds a similar change to gd_clipboard_request that also
uses the blocking clipboard API.

The second patch removes the gtk-clipboard flag, keeping the GTK
clipboard always enabled.

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
---
Changes in v3:
- Use gtk_clipboard_request_contents to avoid text conversion
  when we only need to check if the text is available.
- Link to v2: https://lore.kernel.org/qemu-devel/20260425-gtk-clipboard-v2-0-b098f3cf69cc@gmail.com

Changes in v2:
- Removed forgotten gtk-clipboard comment in meson_options.txt
- Link to v1: https://lore.kernel.org/qemu-devel/20260425-gtk-clipboard-v1-0-6bd99e708e14@gmail.com

---
Jindřich Makovička (2):
      ui/gtk: Use non-blocking clipboard retrieval
      ui/gtk: Keep GTK clipboard enabled

 meson.build        |  4 ----
 meson_options.txt  |  7 -------
 ui/gtk-clipboard.c | 52 +++++++++++++++++++++++++++++++++++++++-------------
 ui/gtk.c           |  2 --
 ui/meson.build     |  4 +---
 5 files changed, 40 insertions(+), 29 deletions(-)
---
base-commit: aa15257174da180c6a8a9d58f87319cfe61c5520
change-id: 20260425-gtk-clipboard-fdf99db13ac0

Best regards,
-- 
Jindrich Makovicka



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-04-28  5:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-26  7:52 [PATCH v3 0/2] Fix and re-enable GTK clipboard Jindřich Makovička
2026-04-26  7:52 ` [PATCH v3 1/2] ui/gtk: Use non-blocking clipboard retrieval Jindřich Makovička
2026-04-27  8:47   ` Marc-André Lureau
2026-04-27 19:40     ` Jindrich Makovicka
2026-04-27  8:52   ` Marc-André Lureau
2026-04-27 19:26     ` Jindrich Makovicka
2026-04-28  5:59       ` Jindrich Makovicka
2026-04-26  7:52 ` [PATCH v3 2/2] ui/gtk: Keep GTK clipboard enabled Jindřich Makovička
2026-04-27  8:56 ` [PATCH v3 0/2] Fix and re-enable GTK clipboard Daniel P. Berrangé
2026-04-27 20:10   ` Jindrich Makovicka

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.