forked from RepoMirrors/bemenu
Use bools instead of ints
This commit is contained in:
parent
4dc5c77d82
commit
6b5b93239e
@ -9,16 +9,16 @@
|
||||
|
||||
static struct client client = {
|
||||
.filter_mode = BM_FILTER_MODE_DMENU,
|
||||
.wrap = 0,
|
||||
.lines = 0,
|
||||
.colors = {0},
|
||||
.title = "bemenu",
|
||||
.prefix = NULL,
|
||||
.font = NULL,
|
||||
.lines = 0,
|
||||
.selected = 0,
|
||||
.bottom = 0,
|
||||
.grab = 0,
|
||||
.monitor = 0
|
||||
.monitor = 0,
|
||||
.bottom = false,
|
||||
.grab = false,
|
||||
.wrap = false,
|
||||
};
|
||||
|
||||
struct paths {
|
||||
|
@ -6,16 +6,16 @@
|
||||
|
||||
static struct client client = {
|
||||
.filter_mode = BM_FILTER_MODE_DMENU,
|
||||
.wrap = 0,
|
||||
.lines = 0,
|
||||
.colors = {0},
|
||||
.title = "bemenu",
|
||||
.prefix = NULL,
|
||||
.font = NULL,
|
||||
.lines = 0,
|
||||
.selected = 0,
|
||||
.bottom = 0,
|
||||
.grab = 0,
|
||||
.monitor = 0
|
||||
.monitor = 0,
|
||||
.bottom = false,
|
||||
.grab = false,
|
||||
.wrap = false,
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -156,7 +156,7 @@ parse_args(struct client *client, int *argc, char **argv[])
|
||||
client->filter_mode = BM_FILTER_MODE_DMENU_CASE_INSENSITIVE;
|
||||
break;
|
||||
case 'w':
|
||||
client->wrap = 1;
|
||||
client->wrap = true;
|
||||
break;
|
||||
case 'l':
|
||||
client->lines = strtol(optarg, NULL, 10);
|
||||
@ -172,10 +172,10 @@ parse_args(struct client *client, int *argc, char **argv[])
|
||||
break;
|
||||
|
||||
case 'b':
|
||||
client->bottom = 1;
|
||||
client->bottom = true;
|
||||
break;
|
||||
case 'f':
|
||||
client->grab = 1;
|
||||
client->grab = true;
|
||||
break;
|
||||
case 'm':
|
||||
client->monitor = strtol(optarg, NULL, 10);
|
||||
|
@ -5,16 +5,16 @@
|
||||
|
||||
struct client {
|
||||
enum bm_filter_mode filter_mode;
|
||||
int32_t wrap;
|
||||
uint32_t lines;
|
||||
const char *colors[BM_COLOR_LAST];
|
||||
const char *title;
|
||||
const char *prefix;
|
||||
const char *font;
|
||||
int32_t selected;
|
||||
int32_t bottom;
|
||||
int32_t grab;
|
||||
int32_t monitor;
|
||||
uint32_t lines;
|
||||
uint32_t selected;
|
||||
uint32_t monitor;
|
||||
bool bottom;
|
||||
bool grab;
|
||||
bool wrap;
|
||||
};
|
||||
|
||||
void parse_args(struct client *client, int *argc, char **argv[]);
|
||||
|
Loading…
Reference in New Issue
Block a user