if (( win == WINDOWID )); then
suppress=t
else
- for i in $(xwininfo -tree -id $win |
+ for i in $(xwininfo -tree -id $win 2>/dev/null |
sed -n '/^ *[0-9]\+ child\(ren\)\?[.:]$/,$ {
/^ *\(0x[0-9a-f]\+\) (.*$/s//\1/p
}')
esac
}
-case ${DISPLAY+t},${WINDOWID+t},${__mdw_precmd_hook+t},${mdw__preexec_hook+t} in
- t,t,t,t) ;;
- *)
- if __mdw_programp notify-send ; then
+case ${DISPLAY+t},${WINDOWID+t},${__mdw_precmd_hook+t},${__mdw_preexec_hook+t} in
+ t,t,t,t)
+ if __mdw_programp notify-send; then
__mdw_addhook __mdw_preexec_hook __wakey_preexec
__mdw_addhook __mdw_precmd_hook __wakey_precmd
fi