diff options
Diffstat (limited to 'source/dialogs/dmenu.c')
-rw-r--r-- | source/dialogs/dmenu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c index 6322e3e3..219dc98a 100644 --- a/source/dialogs/dmenu.c +++ b/source/dialogs/dmenu.c @@ -664,6 +664,7 @@ int dmenu_switcher_dialog ( void ) find_arg ( "-selected-row" ) >= 0 ) { async = FALSE; } + // Check if the subsystem is setup for reading, otherwise do not read. if ( pd->cancel != NULL ) { if ( async ) { @@ -732,6 +733,11 @@ int dmenu_switcher_dialog ( void ) } find_arg_str ( "-p", &( dmenu_mode.display_name ) ); RofiViewState *state = rofi_view_create ( &dmenu_mode, input, menu_flags, dmenu_finalize ); + + + if ( find_arg ( "-keep-right" ) >= 0 ) { + rofi_view_ellipsize_start ( state ); + } // @TODO we should do this better. if ( async && ( pd->cancel != NULL ) ) { rofi_view_set_overlay ( state, "Loading.. " ); @@ -764,4 +770,5 @@ void print_dmenu_options ( void ) print_help_msg ( "-sync", "", "Force dmenu to first read all input data, then show dialog.", NULL, is_term ); print_help_msg ( "-async-pre-read", "[number]", "Read several entries blocking before switching to async mode", "25", is_term ); print_help_msg ( "-w", "windowid", "Position over window with X11 windowid.", NULL, is_term ); + print_help_msg ( "-keep-right", "", "Set ellipsize to end.", NULL, is_term ); } |