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

[virt-tools-list] [PATCH virt-viewer 1/2] Make display menu item sensitive again



From: Marc-André Lureau <marcandre lureau redhat com>

Even if the display has not been explicitely disabled, as long as
the display is "selectable"

Fix regression introduced with "Do not disable extra client monitors"
3b981d953f270662360e5b0c78183924276a18ed
---
 src/virt-viewer-app.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index de4b640..a05941b 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1838,8 +1838,7 @@ window_update_menu_displays_cb(gpointer key G_GNUC_UNUSED,
             if (hint & VIRT_VIEWER_DISPLAY_SHOW_HINT_READY)
                 sensitive = TRUE;
 
-            if ((hint & VIRT_VIEWER_DISPLAY_SHOW_HINT_DISABLED) &&
-                virt_viewer_display_get_selectable(display))
+            if (virt_viewer_display_get_selectable(display))
                 sensitive = TRUE;
         }
 
-- 
1.8.1.1.439.g50a6b54


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