aboutsummaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorJohn Ankarstrom <john@ankarstrom.se>2021-06-30 20:01:38 +0200
committerJohn Ankarstrom <john@ankarstrom.se>2021-06-30 20:01:38 +0200
commit0d1af7a8c8e163250e940833d646a12852aa9e5b (patch)
tree4390dc3979aa499c1dc357ef7bd0e8a19f88e7b3 /src/menu.c
parent5bca4a0a26f89c70357fbbbe13ad1fe9d3b07b24 (diff)
downloadjwm-0d1af7a8c8e163250e940833d646a12852aa9e5b.tar.gz
Associate 'confirm' value with each individual Exit menu item
Previously, the 'confirm' property would set a global value, controlling the behavior of all exits.
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/menu.c b/src/menu.c
index 9f6b80c..ecc5516 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -174,6 +174,7 @@ void DestroyMenu(Menu *menu) {
}
switch(menu->items->action.type) {
case MA_EXECUTE:
+ case MA_EXIT_NOW:
case MA_EXIT:
if(menu->items->action.data.str) {
Release(menu->items->action.data.str);