ok so...
export i=`xwininfo -tree -root | awk '/titleBar/{print $1}'` \
&& ./xdotool windowreparent $i `xwininfo -tree -root | awk '!/footerBar/ && /booklet.reader/{print $1}'`
and
export i=`xwininfo -tree -root | awk '/titleBar/{print $1}'` && ./xdotool windowreparent $i 0x51
to go back to normal.
and they are one-off stateful calls. no log tailing.
maybe we could detect book exit.... hmm...
I'll bundle the tools in a bit. They are all in
The Touch management bundle but I'll repack them for this I guess