diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-03-14 08:26:57 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-03-14 08:26:57 +0800 |
commit | 4a298221c91c4d80b836ece4c2e85bd4cea2b67c (patch) | |
tree | 465f665a90c3b862fd3236e78c22570a629e0673 | |
parent | 62a689a181ae9f67206436705e947cbfe3d2ec7a (diff) |
Update
-rw-r--r-- | X11/openbox/rc.xml | 8 |
1 files changed, 6 insertions, 2 deletions
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 @@ | |||
725 | current_window=$(xdotool getwindowfocus); | 725 | current_window=$(xdotool getwindowfocus); |
726 | 726 | ||
727 | if [ $(xdotool getwindowclassname $current_window) = CONFIRM_BEFORE_CLOSE ]; then | 727 | if [ $(xdotool getwindowclassname $current_window) = CONFIRM_BEFORE_CLOSE ]; then |
728 | zenity --question --text "Are you sure you want to close this window?" || exit 1; | 728 | zenity --question --text "Are you sure you want to close this window?" || \ |
729 | { | ||
730 | xdotool windowminimize --sync $current_window; | ||
731 | exit 1; | ||
732 | } | ||
729 | fi | 733 | fi |
730 | 734 | ||
731 | xdotool windowkill $current_window; | 735 | xdotool windowquit $current_window; |
732 | ' | 736 | ' |
733 | </command> | 737 | </command> |
734 | </action> | 738 | </action> |