]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Rename spice_windowmove to xclient_windomove and apply it to Xephyr
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 30 Sep 2017 13:04:17 +0000 (10:04 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 30 Sep 2017 13:04:17 +0000 (10:04 -0300)
kvmx

diff --git a/kvmx b/kvmx
index ae554bb7c35811ca05720698f45c6cb47f953c02..3f33ce597413f19d972accab6575d0fd05ac2a52 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -226,8 +226,8 @@ function kvmx_spice {
 
   # Fix window title an position
   if which /usr/bin/xdotool &> /dev/null; then
-    if [ ! -z "$spice_windowmove" ]; then
-      xdotool search --name "SPICEc:0" windowmove $spice_windowmove
+    if [ ! -z "$xclient_windowmove" ]; then
+      xdotool search --name "SPICEc:0" windowmove $xclient_windowmove
     fi
 
     xdotool search --name "SPICEc:0" set_window --name $VM
@@ -1097,6 +1097,10 @@ function kvmx_xephyr {
 
   # Fix window titles
   if which /usr/bin/xdotool &> /dev/null; then
+    if [ ! -z "$xclient_windowmove" ]; then
+      xdotool search --name "Xephyr on :" windowmove $xclient_windowmove
+    fi
+
     xdotool search --name "Xephyr on :" set_window --name $VM
   fi
 }