yad
yad copied to clipboard
[feature request] Don't close YAD window by 252 signal
Something like this:
#! /usr/bin/env sh
while true; do
i=0
while [ $i -ne 100 ]; do
i=$((i+1))
sleep .1
echo $i
done | yad --progress --text="Some app" --center --no-buttons --width=400
[ $? -eq 252 ]
! yad --width=400 --text="Do you want to quit?" \
--on-top --center --image=dialog-question \
--button=No!gtk-no:1 --button=Yes!gtk-yes:0 || break
done
In this case: yad --progress --ignore-close
Such an option would also be useful: yad --on-top-parent
Best Regards.
yad --no-escape ...
yad --no-escape ...
"--no-escape" prevent closing a window by Escape key only, but Alt-F4/[x] window title button etc.
i don't want to prevent window manager makes his job. if you need such functionality please use third-party tools like devilspie