Make display menu item sensitive again

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"
3b981d953f
This commit is contained in:
Marc-André Lureau 2013-03-28 18:40:10 +02:00 committed by Marc-André Lureau
parent 081f2decbe
commit 23acfa582d

View File

@ -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;
}