[virt-tools-list] [PATCH] virt-viewer-app: Call virt_viewer_app_update_menu_displays on show_hint change
Hans de Goede
hdegoede at redhat.com
Thu Mar 21 16:23:40 UTC 2013
Since the sensitivity of the display menu-check-items depends on show_hint,
we need to call virt_viewer_app_update_menu_displays on show_hint change.
This fixes the following scenario:
1) Linux guest with upto 4 displays on a single qxl dev
2) Configure it for 2 displays
3) Switch to a text-console in the guest (ie send ctrl+alt+F3)
4) All displays except for disp 1 are now not sensitve in the menu
5) Switch back to X
6) The second display in the view->displays menu is still not sensitive
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/virt-viewer-app.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 8d76de8..3d57502 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -681,6 +681,7 @@ display_show_hint(VirtViewerDisplay *display,
virt_viewer_window_hide(win);
virt_viewer_notebook_show_status(nb, _("Waiting for display %d..."), nth + 1);
}
+ virt_viewer_app_update_menu_displays(self);
g_object_unref(self);
}
--
1.8.1.4
More information about the virt-tools-list
mailing list