summaryrefslogtreecommitdiffstats
path: root/core/modules/pvs2
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/pvs2')
-rwxr-xr-xcore/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh b/core/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh
index f2749d8b..a7c86eda 100755
--- a/core/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh
+++ b/core/modules/pvs2/data/opt/openslx/pvs2/toggleManager.sh
@@ -21,14 +21,12 @@ getCurrent() {
wmctrl -d | awk '{if ($2 == "*") print $1}'
}
-# Do this whenever we're triggered
-moveVm
-moveMgr
- wmctrl -s 0
-
case "$EVENT" in
init)
echo "CHECKED=false"
+ moveVm
+ moveMgr
+ wmctrl -s 0
;;
connected)
echo "VISIBLE=$ISLOCAL"