]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Run kvmx_xrandr when connecting using spice
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 15 Apr 2018 20:01:29 +0000 (17:01 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 15 Apr 2018 20:01:29 +0000 (17:01 -0300)
kvmx

diff --git a/kvmx b/kvmx
index c2a620e4f0a68e0f80d5a54737892087f78c6664..6af78f919d0366842d6a490f5e6a00b7aeaf4366 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -249,6 +249,11 @@ function kvmx_spice {
     xdotool search --name "SPICEc:0" set_window --name $VM
   fi
 
+  # Set screen resolution
+  if [ "$xrandr" == "1" ]; then
+    kvmx_xrandr
+  fi
+
   # Restart vdagent
   if [ "$ssh_support" == "y" ]; then
     echo "which kvmx-vdagent > /dev/null && DISPLAY=:0 kvmx-vdagent" | kvmx_ssh