aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-11-12 11:18:43 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-11-12 11:18:43 -0200
commitff3e09ca5e3d37406757013dad2fcbdebc80eca7 (patch)
tree014fc279a11b15726cf8de15ead2d242cab50035
parent53e5bf91034872c35baa5abc7831daaa58d03745 (diff)
downloadkvmx-ff3e09ca5e3d37406757013dad2fcbdebc80eca7.tar.gz
kvmx-ff3e09ca5e3d37406757013dad2fcbdebc80eca7.tar.bz2
Run xrandr only if spice client is in use
-rwxr-xr-xkvmx2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index b902ba3..4ab07dd 100755
--- 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