1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Reverting c/p behavior, misread comments.

This commit is contained in:
QC 2014-08-03 21:09:20 +02:00
parent 9bbb79a888
commit 77a0a765ae
4 changed files with 13 additions and 13 deletions

View file

@ -1053,7 +1053,7 @@ static void calculate_window_position ( const workarea *mon, int *x, int *y, int
}
MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prompt, Time *time,
int *shift, menu_match_cb mmc, void *mmc_data, int *selected_line , int sorting)
int *shift, menu_match_cb mmc, void *mmc_data, int *selected_line, int sorting )
{
int retv = MENU_CANCEL;
unsigned int i, j;
@ -1228,7 +1228,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
}
// Try to look-up the selected line and highlight that.
// This is needed 'hack' to fix the dmenu 'next row' modi.
if(init == 0 && selected_line != NULL && (*selected_line) == i) {
if ( init == 0 && selected_line != NULL && ( *selected_line ) == i ) {
selected = j;
init = 1;
}
@ -1370,7 +1370,7 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
}
if ( key == XK_Insert ) {
XConvertSelection ( display, ( ev.xkey.state & ShiftMask ) ?
netatoms[CLIPBOARD] : XA_PRIMARY,
XA_PRIMARY : netatoms[CLIPBOARD],
netatoms[UTF8_STRING], netatoms[UTF8_STRING], main_window, CurrentTime );
}
else if ( ( ( ev.xkey.state & ShiftMask ) == ShiftMask ) &&

View file

@ -134,7 +134,7 @@ SwitcherMode script_switcher_dialog ( char **input, void *data )
unsigned int new_length = 0;
char **new_list = NULL;
int mretv = menu ( list, length, input, prompt, NULL, NULL,
token_match, NULL, &selected_line , FALSE);
token_match, NULL, &selected_line, FALSE );
if ( mretv == MENU_NEXT ) {
retv = NEXT_DIALOG;