summaryrefslogtreecommitdiffstats
path: root/source/xrmoptions.c
diff options
context:
space:
mode:
authorIan Remmler <ian@remmler.org>2016-09-08 15:42:41 -0500
committerDave Davenport <DaveDavenport@users.noreply.github.com>2016-09-08 22:42:41 +0200
commit91e2ecf2128f309d14691373cfec431343f105fd (patch)
tree43293dc884d7bfc4ae85dd8be6945e817a836936 /source/xrmoptions.c
parente3fb17a843602df47ccf417c051e811e2da60ce1 (diff)
Added click-to-exit option. (#460)
Exit if a mouse button is pressed and released outside of the rofi window.
Diffstat (limited to 'source/xrmoptions.c')
-rw-r--r--source/xrmoptions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/xrmoptions.c b/source/xrmoptions.c
index b55bffc8..c3414439 100644
--- a/source/xrmoptions.c
+++ b/source/xrmoptions.c
@@ -190,6 +190,8 @@ static XrmOption xrmOptions[] = {
"Background to use for fake transparency. (background or screenshot)", CONFIG_DEFAULT },
{ xrm_String, "window-format", { .str = &config.window_format }, NULL,
"Window Format. w (desktop name), t (title), n (name), r (role), c (class)", CONFIG_DEFAULT },
+ { xrm_Boolean, "click-to-exit", { .num = &config.click_to_exit }, NULL,
+ "Click outside the window to exit", CONFIG_DEFAULT },
};
// Dynamic options.