aboutsummaryrefslogtreecommitdiff
path: root/src/root.h
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/root.h
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/root.h')
-rw-r--r--src/root.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/root.h b/src/root.h
index b546156..ffb05e0 100644
--- a/src/root.h
+++ b/src/root.h
@@ -25,11 +25,6 @@ void DestroyRootMenu();
*/
void SetRootMenu(const char *indexes, struct Menu *m);
-/** Set whether a confirmation dialog is displayed on exit.
- * @param v 1 to display confirmation, 0 to just exit.
- */
-void SetShowExitConfirmation(int v);
-
/** Determine if a root menu is defined for the specified index.
* @return 1 if it is defined, 0 if not.
*/
@@ -58,8 +53,10 @@ void RunCommand(const char *command);
/** Restart the window manager. */
void Restart();
-/** Exit the window manager. */
-void Exit();
+/** Exit the window manager.
+ * @param confirm Whether to prompt for confirmation.
+ */
+void Exit(int confirm);
#endif