Add an example that uses intermediate consequences

This commit is contained in:
Bastien Dejean 2020-02-03 18:41:25 +01:00
parent d3a7768356
commit 46ac471e42

View file

@ -3,12 +3,20 @@
wid=$1 wid=$1
class=$2 class=$2
instance=$3 instance=$3
consequences=$4
if [ "$instance" = fontforge ] ; then if [ "$instance" = fontforge ] ; then
title=$(xtitle "$wid") title=$(xtitle "$wid")
case "$title" in case "$title" in
Layers|Tools|Warning) Layers|Tools|Warning)
echo "focus = off" echo "focus=off"
;; ;;
esac esac
fi fi
case "$class" in
Lutris|Liferea)
eval "$consequences"
[ "$state" ] || echo "state=pseudo_tiled"
;;
esac