yad icon indicating copy to clipboard operation
yad copied to clipboard

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

Open sarether opened this issue 3 years ago • 3 comments

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.

sarether avatar Jun 07 '22 15:06 sarether

yad --no-escape ...

v1cont avatar Jun 09 '22 16:06 v1cont

yad --no-escape ...

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

sarether avatar Jun 10 '22 20:06 sarether

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

v1cont avatar Jun 15 '22 12:06 v1cont