From 91e2ecf2128f309d14691373cfec431343f105fd Mon Sep 17 00:00:00 2001 From: Ian Remmler Date: Thu, 8 Sep 2016 15:42:41 -0500 Subject: [PATCH] Added click-to-exit option. (#460) Exit if a mouse button is pressed and released outside of the rofi window. --- config/config.c | 1 + doc/rofi-manpage.markdown | 12 ++++++++++-- doc/rofi.1 | 15 ++++++++++++--- include/settings.h | 2 ++ include/view-internal.h | 2 ++ source/view.c | 15 +++++++++++++++ source/xrmoptions.c | 2 ++ 7 files changed, 44 insertions(+), 5 deletions(-) diff --git a/config/config.c b/config/config.c index 4e7dfb74..4d9f865d 100644 --- a/config/config.c +++ b/config/config.c @@ -130,4 +130,5 @@ Settings config = { .scroll_method = 0, .fake_background = "screenshot", .window_format = "{w} {c} {t}", + .click_to_exit = TRUE, }; diff --git a/doc/rofi-manpage.markdown b/doc/rofi-manpage.markdown index 502794c6..f3ebc8d4 100644 --- a/doc/rofi-manpage.markdown +++ b/doc/rofi-manpage.markdown @@ -47,6 +47,7 @@ [ -fake-transparency ] [ -matching *method* ] [ -tokenize ] +[ -no-click-to-exit ] [ -threads *num* ] [ -config *filename* ] @@ -174,9 +175,9 @@ Custom modes can be added using the internal 'script' mode. Each mode has two pa :