[PATCH xf86-video-qxl 1/3] Add support for a --numheads option to the Xspice script.

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

 



Signed-off-by: Jeremy White <jwhite@xxxxxxxxxxxxxxx>
---
 scripts/Xspice | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/scripts/Xspice b/scripts/Xspice
index 52b1b16..a6913a8 100755
--- a/scripts/Xspice
+++ b/scripts/Xspice
@@ -61,6 +61,7 @@ parser.add_argument('--config', default='spiceqxl.xorg.conf')
 # specifically, don't use -p and -s.
 parser.add_argument('--port', type=int, help='standard spice port')
 parser.add_argument('--exit-on-disconnect', action='store_true', help='Exit the X server when any client disconnects')
+parser.add_argument('--numheads', type=int, help='Number of virtual heads to create.')
 parser.add_argument('--deferred-fps', type=int, help='If given, render to a buffer and send updates only this many times per second')
 parser.add_argument('--tls-port', type=int, help='spice tls port', default=0)
 add_boolean('--disable-ticketing', help="do not require a client password")
@@ -104,7 +105,6 @@ parser.add_argument('--audio-fifo-dir', help="set fifo directory for playback au
 #Option "EnableImageCache" "True"
 #Option "EnableFallbackCache" "True"
 #Option "EnableSurfaces" "True"
-#Option "NumHeads" "4"
 #parser.add_argument('--playback-compression', choices=['0', '1'], help='enabled by default')
 #Option "SpiceDisableCopyPaste" "False"
 
@@ -267,6 +267,11 @@ for arg in var_args:
             a = str(a)
         os.environ['XSPICE_' + arg.upper()] = a
 
+# A few arguments don't follow the XSPICE_ convention - handle them manually
+if args.numheads:
+    os.environ['QXL_NUM_HEADS'] = str(args.numheads)
+
+
 display=""
 for arg in xorg_args:
     if arg.startswith(":"):
-- 
2.1.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]