Merge pull request #1249 from SimonFair/Spice-mouse-fix-with-copy-paste

Fix for Spice Mouse if Copy paste enabled.
This commit is contained in:
tom mortensen
2023-02-04 15:56:20 -08:00
committed by GitHub

View File

@@ -766,12 +766,14 @@
} else $strPort = "-1" ;
if ($strAutoport == "yes") $strPort = $strWSport = "-1" ;
if (($gpu['copypaste'] == "yes") && ($strProtocol == "spice")) $vmrcmousemode = "<mouse mode='server'/>" ; else $vmrcmousemode = "" ;
$vmrc = "<input type='tablet' bus='usb'/>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='$strProtocol' port='$strPort' autoport='$strAutoport' websocket='$strWSport' listen='0.0.0.0' $passwdstr $strKeyMap>
<listen type='address' address='0.0.0.0'/>
$vmrcmousemode
</graphics>
<video>
<model type='$strModelType'/>