]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Run xrandr only if spice client is in use
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 12 Nov 2018 13:18:43 +0000 (11:18 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 12 Nov 2018 13:18:43 +0000 (11:18 -0200)
kvmx

diff --git a/kvmx b/kvmx
index b902ba3b5c206686b6e6a4009bd48eeb1cb0166b..4ab07dd3d00fd1dc8c760a9220be37a8009b4512 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -620,7 +620,7 @@ function kvmx_up {
       IFS="$old_ifs"
     fi
 
-    if [ "$xrandr" == "1" ]; then
+    if [ "$xrandr" == "1" ] && [ "$run_spice_client" == "1" ]; then
       echo "Waiting for X11 to come up so we can set machine resolution..."
       sleep 8
       kvmx_xrandr