[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH 4/5] usbredir: Fix usbredir menu always being grayed out on monitor 2+



Signed-off-by: Hans de Goede <hdegoede redhat com>
---
 src/virt-viewer-app.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index a082400..f5d78a9 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -579,6 +579,10 @@ virt_viewer_app_set_nth_window(VirtViewerApp *self, gint nth, VirtViewerWindow *
     g_hash_table_insert(self->priv->windows, key, win);
     virt_viewer_app_set_window_subtitle(self, win, nth);
     virt_viewer_app_update_menu_displays(self);
+    if (self->priv->session) {
+        gboolean has_usb = virt_viewer_session_has_usb(self->priv->session);
+        virt_viewer_window_set_usb_options_sensitive(win, has_usb);
+    }
 
     g_signal_emit(self, signals[SIGNAL_WINDOW_ADDED], 0, win);
 }
-- 
1.8.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]