summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/LinHES-session
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-09-02 15:55:35 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-09-02 15:55:35 (GMT)
commitc5d26982bf61f44fdc95fabdefe3d72a86705f27 (patch)
tree0a7f15b87308c9a4bcbad8b4b0721bcbf943f2b9 /abs/core/LinHES-system/LinHES-session
parent5d7fa3763c27395b8e1333c12ea7ae14262cfa54 (diff)
downloadlinhes_pkgbuild-c5d26982bf61f44fdc95fabdefe3d72a86705f27.zip
linhes_pkgbuild-c5d26982bf61f44fdc95fabdefe3d72a86705f27.tar.gz
linhes_pkgbuild-c5d26982bf61f44fdc95fabdefe3d72a86705f27.tar.bz2
LinHES-system: enhanced mode remove fullscreen from mythtv windows when they start. This allows them to be moved out of the way with the mouse. Should not cause any focus problems
Diffstat (limited to 'abs/core/LinHES-system/LinHES-session')
-rwxr-xr-xabs/core/LinHES-system/LinHES-session26
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/LinHES-session b/abs/core/LinHES-system/LinHES-session
index ac90eff..902962f 100755
--- a/abs/core/LinHES-system/LinHES-session
+++ b/abs/core/LinHES-system/LinHES-session
@@ -264,6 +264,7 @@ function first_configure_mv(){
then
/usr/MythVantage/bin/backend_control.sh stop BE 127.0.0.1
msg "MythTV setup is starting.\nPlease follow the steps for adding tuners and guide data."
+ run_wmctrl &
/usr/bin/taskset -c 0 /usr/bin/mythtv-setup
/usr/MythVantage/bin/backend_control.sh start BE 127.0.0.1
fi
@@ -303,6 +304,28 @@ function start_myth() {
}
+function run_wmctrl(){
+ done="False"
+ for i in `seq 60`
+ do
+ for name in "MythTV Frontend" "MythTV Setup" "mythwelcome"
+ do
+ xwininfo -name "$name"
+ rc=$?
+ if [ $rc = 0 ]
+ then
+ wmctrl -r "$name" -b remove,fullscreen
+ done="True"
+ fi
+ if [ $done = "True" ]
+ then
+ break
+ fi
+ done
+ sleep 5
+ done
+
+}
function run_myth(){
if [ -f /tmp/nomfe ]
@@ -321,6 +344,8 @@ function run_myth(){
if [ x$STARTUP_STYLE = xenhanced ]
then
+
+ run_wmctrl &
$STARTCMD 2>&1
else
$STARTCMD 2>&1 &
@@ -379,5 +404,6 @@ then
fi
+wmctrl -r "MythTV Frontend" -b remove,fullscreen