mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
Fix issue #61
This commit is contained in:
parent
57f28bbb3b
commit
7a1766fa45
3 changed files with 18 additions and 18 deletions
|
@ -62,20 +62,20 @@ Settings config = {
|
|||
.i3_mode = 0,
|
||||
#endif
|
||||
// Key binding
|
||||
.window_key = "F12",
|
||||
.run_key = "mod1+F2",
|
||||
.ssh_key = "mod1+F3",
|
||||
.window_key = "F12",
|
||||
.run_key = "mod1+F2",
|
||||
.ssh_key = "mod1+F3",
|
||||
// Location of the window. WL_CENTER, WL_NORTH_WEST, WL_NORTH,WL_NORTH_EAST, etc.
|
||||
.location = WL_CENTER,
|
||||
// Mode of window, list (Vertical) or dmenu like (Horizontal)
|
||||
.hmode = FALSE,
|
||||
// Padding of the window.
|
||||
.padding = 5,
|
||||
.ssh_set_title = TRUE,
|
||||
.y_offset = 0,
|
||||
.x_offset = 0,
|
||||
.fixed_num_lines = FALSE,
|
||||
.disable_history = FALSE,
|
||||
.levenshtein_sort = FALSE
|
||||
.padding = 5,
|
||||
.ssh_set_title = TRUE,
|
||||
.y_offset = 0,
|
||||
.x_offset = 0,
|
||||
.fixed_num_lines = FALSE,
|
||||
.disable_history = FALSE,
|
||||
.levenshtein_sort = FALSE
|
||||
};
|
||||
|
||||
|
|
|
@ -19,12 +19,12 @@ typedef struct
|
|||
|
||||
typedef enum
|
||||
{
|
||||
TB_AUTOHEIGHT = 1 << 0,
|
||||
TB_AUTOWIDTH = 1 << 1,
|
||||
TB_LEFT = 1 << 16,
|
||||
TB_RIGHT = 1 << 17,
|
||||
TB_CENTER = 1 << 18,
|
||||
TB_EDITABLE = 1 << 19,
|
||||
TB_AUTOHEIGHT = 1 << 0,
|
||||
TB_AUTOWIDTH = 1 << 1,
|
||||
TB_LEFT = 1 << 16,
|
||||
TB_RIGHT = 1 << 17,
|
||||
TB_CENTER = 1 << 18,
|
||||
TB_EDITABLE = 1 << 19,
|
||||
} TextboxFlags;
|
||||
|
||||
typedef enum
|
||||
|
|
|
@ -1386,12 +1386,12 @@ MenuReturn menu ( char **lines, unsigned int num_lines, char **input, char *prom
|
|||
selected = 0;
|
||||
}
|
||||
else{
|
||||
selected -= ( max_elements - 1 );
|
||||
selected -= ( max_elements );
|
||||
}
|
||||
update = TRUE;
|
||||
}
|
||||
else if ( key == XK_Page_Down ) {
|
||||
selected += ( max_elements - 1 );
|
||||
selected += ( max_elements );
|
||||
|
||||
if ( selected >= num_lines ) {
|
||||
selected = num_lines - 1;
|
||||
|
|
Loading…
Reference in a new issue