From f06a882b119d970fff19a922f2c5fc9c65f56d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 26 Jul 2018 19:11:45 +0200 Subject: [PATCH] display: allow display without associated monitor number MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The VTE display will have monitor id -1. Eventually, having a base "console" class without monitor id could avoid this allowance. Signed-off-by: Marc-André Lureau Acked-by: Victor Toso --- src/virt-viewer-display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virt-viewer-display.c b/src/virt-viewer-display.c index a1fcb82..98d4edd 100644 --- a/src/virt-viewer-display.c +++ b/src/virt-viewer-display.c @@ -129,7 +129,7 @@ virt_viewer_display_class_init(VirtViewerDisplayClass *class) g_param_spec_int("nth-display", "Nth display", "Nth display", - 0, + -1, G_MAXINT32, 0, G_PARAM_READWRITE |