[virt-tools-list] [PATCH virt-viewer] Fix send-key menu not showing in fullscreen with gtk3 (rhbz#913601)
Hans de Goede
hdegoede at redhat.com
Thu Feb 21 17:30:11 UTC 2013
This should also fix the send-key menu showing in the wrong position with a
gtk2 build, when the tooltray icon is clicked on the 2nd or higher monitor.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/virt-viewer-window.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index f4204cf..f0eb948 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -597,6 +597,7 @@ static GtkMenu*
virt_viewer_window_get_keycombo_menu(VirtViewerWindow *self)
{
gint i;
+ VirtViewerWindowPrivate *priv = self->priv;
GtkMenu *menu = GTK_MENU(gtk_menu_new());
for (i = 0 ; i < G_N_ELEMENTS(keyCombos) ; i++) {
@@ -610,6 +611,7 @@ virt_viewer_window_get_keycombo_menu(VirtViewerWindow *self)
gtk_container_add(GTK_CONTAINER(menu), item);
}
+ gtk_menu_attach_to_widget(menu, GTK_WIDGET(priv->window), NULL);
gtk_widget_show_all(GTK_WIDGET(menu));
return g_object_ref_sink(menu);
}
--
1.8.1.2
More information about the virt-tools-list
mailing list