From a90ff4803252d2ec43f322281771f4b90fa25b44 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Mon, 29 Aug 2016 08:46:21 +0200 Subject: [PATCH] But broken drun under a configure option. --- configure.ac | 5 +++++ source/rofi.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 006d0f45..e0076887 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,11 @@ AC_ARG_ENABLE(gcov, AC_ARG_ENABLE(asan, [ --enable-asan asan], [AM_CFLAGS="${AM_CFLAGS} -fsanitize=address -fno-omit-frame-pointer -g3"]) + + +AC_ARG_ENABLE(broken-drun, + [ --enable-broken-drun drun], + [AM_CFLAGS="${AM_CFLAGS} -DBROKEN_DRUN"]) dnl --------------------------------------------------------------------- dnl Disable window mode dnl --------------------------------------------------------------------- diff --git a/source/rofi.c b/source/rofi.c index 9d38fba5..df61234d 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -368,12 +368,12 @@ static int add_mode ( const char * token ) modi[num_modi] = &run_mode; num_modi++; } - /* +#ifdef BROKEN_DRUN else if ( strcasecmp ( token, "drun" ) == 0 ) { modi[num_modi] = &drun_mode; num_modi++; } - */ +#endif // combi dialog else if ( strcasecmp ( token, "combi" ) == 0 ) { modi[num_modi] = &combi_mode;