1
0
mirror of https://github.com/Cloudef/bemenu synced 2024-11-24 01:44:16 +01:00

Fix argument constants and references to --backend option

This commit is contained in:
Jari Vetoniemi 2015-01-17 19:05:39 +02:00
parent 074b2d1b58
commit 4dc5c77d82
4 changed files with 13 additions and 20 deletions

@ -14,7 +14,6 @@ static struct client client = {
.colors = {0},
.title = "bemenu",
.prefix = NULL,
.renderer = NULL,
.font = NULL,
.selected = 0,
.bottom = 0,

@ -11,7 +11,6 @@ static struct client client = {
.colors = {0},
.title = "bemenu",
.prefix = NULL,
.renderer = NULL,
.font = NULL,
.selected = 0,
.bottom = 0,

@ -171,10 +171,6 @@ parse_args(struct client *client, int *argc, char **argv[])
client->selected = strtol(optarg, NULL, 10);
break;
case 0x100:
client->renderer = optarg;
break;
case 'b':
client->bottom = 1;
break;
@ -185,44 +181,44 @@ parse_args(struct client *client, int *argc, char **argv[])
client->monitor = strtol(optarg, NULL, 10);
break;
case 0x102:
case 0x100:
client->font = optarg;
break;
case 0x103:
case 0x101:
client->colors[BM_COLOR_BG] = optarg;
break;
case 0x104:
case 0x102:
client->colors[BM_COLOR_TITLE_BG] = optarg;
break;
case 0x105:
case 0x103:
client->colors[BM_COLOR_TITLE_FG] = optarg;
break;
case 0x106:
case 0x104:
client->colors[BM_COLOR_FILTER_BG] = optarg;
break;
case 0x107:
case 0x105:
client->colors[BM_COLOR_FILTER_FG] = optarg;
break;
case 0x108:
case 0x106:
client->colors[BM_COLOR_ITEM_BG] = optarg;
break;
case 0x109:
case 0x107:
client->colors[BM_COLOR_ITEM_FG] = optarg;
break;
case 0x110:
case 0x108:
client->colors[BM_COLOR_HIGHLIGHTED_BG] = optarg;
break;
case 0x111:
case 0x109:
client->colors[BM_COLOR_HIGHLIGHTED_FG] = optarg;
break;
case 0x112:
case 0x110:
client->colors[BM_COLOR_SELECTED_BG] = optarg;
break;
case 0x113:
case 0x111:
client->colors[BM_COLOR_SELECTED_FG] = optarg;
break;
case 0x114:
case 0x112:
disco();
break;

@ -10,7 +10,6 @@ struct client {
const char *colors[BM_COLOR_LAST];
const char *title;
const char *prefix;
const char *renderer;
const char *font;
int32_t selected;
int32_t bottom;