v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
654 stars 58 forks source link

[feature request] Don't close YAD window by 252 signal #181

Open sarether opened 2 years ago

sarether commented 2 years ago

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.

v1cont commented 2 years ago

yad --no-escape ...

sarether commented 2 years ago

yad --no-escape ...

"--no-escape" prevent closing a window by Escape key only, but Alt-F4/[x] window title button etc.

v1cont commented 2 years ago

i don't want to prevent window manager makes his job. if you need such functionality please use third-party tools like devilspie