From bca01f389ddedb5cf75930090dc440e22ccc943f Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 13 Jul 2017 08:21:15 +0200 Subject: [DMenu] make rofi obey the dmenu -w flag. - This is a dirty hack that needs to be done better in next release. --- source/dialogs/dmenu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/dialogs') diff --git a/source/dialogs/dmenu.c b/source/dialogs/dmenu.c index 3ded41b3..ab9e9f7c 100644 --- a/source/dialogs/dmenu.c +++ b/source/dialogs/dmenu.c @@ -656,6 +656,7 @@ int dmenu_switcher_dialog ( void ) MenuFlags menu_flags = MENU_NORMAL; DmenuModePrivateData *pd = (DmenuModePrivateData *) dmenu_mode.private_data; int async = TRUE; + // For now these only work in sync mode. if ( find_arg ( "-sync" ) >= 0 || find_arg ( "-dump" ) >= 0 || find_arg ( "-select" ) >= 0 || find_arg ( "-no-custom" ) >= 0 || find_arg ( "-only-match" ) >= 0 || config.auto_select || @@ -757,4 +758,5 @@ void print_dmenu_options ( void ) print_help_msg ( "-input", "[filename]", "Read input from file instead from standard input.", NULL, is_term ); 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 ); } -- cgit v1.2.3