summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorcos <cos>2015-09-16 22:37:59 +0200
committercos <cos>2016-07-28 20:52:44 +0200
commit26f0ba3074047d074e71c904baccfce0763e346d (patch)
tree512b2a1fe22871e8599aae5ac451b634d07fc360 /src/main.c
parent492a06066ae5cca4054dbf3241863fb842eddcd1 (diff)
downloadratpoison-cr/add_confirmquit.zip
Prompt on interactive quit when confirmquit is true.cr/add_confirmquit
Quitting a window manager is a very special and dangerous operation compared to exiting an editor, a web browser or something else with a command syntax very similar to ratpoison's. This commit adds some protection for those (us) who occasionally unintentionally types quit at the wrong prompt.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 52dbcce..da6a0c0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -599,6 +599,8 @@ init_defaults (void)
defaults.history_expansion = False;
defaults.frame_selectors = xstrdup ("");
defaults.maxundos = 20;
+
+ defaults.confirm_on_quit = 0;
}
int