]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Xephyr: fix window title
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 1 May 2017 17:10:36 +0000 (14:10 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 1 May 2017 17:10:36 +0000 (14:10 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 2814780b9282d397d90f2243855556944009eb97..293b469e8bf9bb779f84748fea98548e388065a7 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -956,6 +956,14 @@ function kvmx_xephyr {
   fi
 
   Xephyr :$GUEST_DISPLAY -ac -port $XDMCP_PORT -query 127.0.0.1 $resolution &> $XDMCPLOG < /dev/null &
+
+  # Give time to connect
+  sleep 5
+
+  # Fix window titles
+  if which /usr/bin/xdotool &> /dev/null; then
+    xdotool search --name "Xephyr on :" set_window --name $VM
+  fi
 }
 
 # Dispatch