This commit is contained in:
Qball Cow 2014-07-21 16:26:35 +02:00
parent 57f28bbb3b
commit 7a1766fa45
3 changed files with 18 additions and 18 deletions

View File

@ -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
};

View File

@ -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

View File

@ -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;