mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
gtk: disable GTK Clipboard with a new meson option
The GTK Clipboard implementation may cause guest hangs. Therefore implement new configure switch: --enable-gtk-clipboard, as a meson option disabled by default, which warns in the help text about the experimental nature of the feature. Regenerate the meson build options to include it. The initialization of the clipboard is gtk.c, as well as the compilation of gtk-clipboard.c are now conditional on this new option to be set. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1150 Signed-off-by: Claudio Fontana <cfontana@suse.de> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jim Fehlig <jfehlig@suse.com> Message-Id: <20221121135538.14625-1-cfontana@suse.de> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
committed by
Gerd Hoffmann
parent
fb977a8174
commit
29e0bfffab
2
ui/gtk.c
2
ui/gtk.c
@@ -2403,7 +2403,9 @@ static void gtk_display_init(DisplayState *ds, DisplayOptions *opts)
|
||||
opts->u.gtk.show_tabs) {
|
||||
gtk_menu_item_activate(GTK_MENU_ITEM(s->show_tabs_item));
|
||||
}
|
||||
#ifdef CONFIG_GTK_CLIPBOARD
|
||||
gd_clipboard_init(s);
|
||||
#endif /* CONFIG_GTK_CLIPBOARD */
|
||||
}
|
||||
|
||||
static void early_gtk_display_init(DisplayOptions *opts)
|
||||
|
||||
Reference in New Issue
Block a user