diff options
| -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> |