#!/bin/sh
##################################
WMNAME='Easy Debian'
export DISPLAY=:0
zenity --display=:0 --info --text="This window is needed to gain keyboard focus in LXDE. Click OK." &trl -l
export PARWIN=`wmctrl -l | grep -i "$WMNAME" | awk '{print $1}'`
# wmctrl -i -a $PARWIN
while [ "x$TWOWIN" = "x" ] ; do
  # wait for Zenity dialog to pop up...
  export TWOWIN=`wmctrl -l | grep -i Information | awk '{print $1}'`
done
#echo window id: $TWOWIN
wmctrl -i -a $TWOWIN
#/sbin/qobi-wmhint-fix $PARWIN
/usr/bin/set-focus $PARWIN
wmctrl -i -a $PARWIN
