From 4a298221c91c4d80b836ece4c2e85bd4cea2b67c Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 14 Mar 2023 08:26:57 +0800 Subject: Update --- X11/openbox/rc.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'X11') diff --git a/X11/openbox/rc.xml b/X11/openbox/rc.xml index 3ac0b81..abdff1e 100644 --- a/X11/openbox/rc.xml +++ b/X11/openbox/rc.xml @@ -725,10 +725,14 @@ current_window=$(xdotool getwindowfocus); if [ $(xdotool getwindowclassname $current_window) = CONFIRM_BEFORE_CLOSE ]; then - zenity --question --text "Are you sure you want to close this window?" || exit 1; + zenity --question --text "Are you sure you want to close this window?" || \ + { + xdotool windowminimize --sync $current_window; + exit 1; + } fi - xdotool windowkill $current_window; + xdotool windowquit $current_window; ' -- cgit v1.2.3-70-g09d2