From c97d2979e55beafa0d22493598a71950d0040246 Mon Sep 17 00:00:00 2001 From: QC Date: Sun, 2 Aug 2015 15:50:06 +0200 Subject: [PATCH] Bug #200, add '-b' method. --- source/dialogs/dmenu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c index 2d3cb877..2de19d03 100644 --- a/source/dialogs/dmenu.c +++ b/source/dialogs/dmenu.c @@ -238,6 +238,15 @@ int dmenu_switcher_dialog ( char **input ) g_strfreev ( tokens ); } + + /** + * Dmenu compatibility. + * `-b` put on bottom. + */ + if ( find_arg ( "-b" ) >= 0 ) { + config.location = 6; + } + do { int next_pos = selected_line; int mretv = menu ( list, length, input, dmenu_prompt,