aboutsummaryrefslogtreecommitdiffstats
path: root/vconsole.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-11-05 10:08:03 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-11-05 10:08:03 +0100
commit0c84e1a52bab9055d0eadc6b854717fcaf054c04 (patch)
tree46eac6b352057e4b351fe2344708cd79f0ead94d /vconsole.c
parent4608e15fac274cefecf645b3a1d8939b9ae4f70c (diff)
downloadvconsole-0c84e1a52bab9055d0eadc6b854717fcaf054c04.tar.gz
indirect connect
Diffstat (limited to 'vconsole.c')
-rw-r--r--vconsole.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/vconsole.c b/vconsole.c
index 0d3f1dc..0300c7e 100644
--- a/vconsole.c
+++ b/vconsole.c
@@ -291,7 +291,6 @@ static struct vconsole_domain *find_guest(struct vconsole_window *win)
}
static void run_virt_viewer(struct vconsole_domain *dom,
- bool direct,
bool reconnect)
{
char *argv[32];
@@ -302,8 +301,9 @@ static void run_virt_viewer(struct vconsole_domain *dom,
argv[argc++] = "virt-viewer";
argv[argc++] = "--wait";
- if (direct)
- argv[argc++] = "--direct";
+#if 0
+ argv[argc++] = "--direct";
+#endif
if (reconnect)
argv[argc++] = "--reconnect";
argv[argc++] = "-c";
@@ -330,7 +330,7 @@ static void menu_cb_vm_gfx(GtkAction *action, void *data)
struct vconsole_domain *dom = find_guest(win);
if (dom)
- run_virt_viewer(dom, true, true);
+ run_virt_viewer(dom, true);
}
static void menu_cb_vm_run(GtkAction *action, void *data)
@@ -348,7 +348,7 @@ static void menu_cb_vm_run_gfx(GtkAction *action, void *data)
struct vconsole_domain *dom = find_guest(win);
if (dom) {
- run_virt_viewer(dom, true, false);
+ run_virt_viewer(dom, false);
domain_start(dom);
}
}