Remove useless flags in mousebind struct

This commit is contained in:
Martin Duquesnoy 2012-01-23 05:32:25 +01:00
parent 6f383d74b8
commit a74f7c15db
3 changed files with 0 additions and 4 deletions

View File

@ -32,7 +32,6 @@ config_mouse_section(struct mbhead *mousebinds, struct conf_sec **sec)
m->cmd = xstrdup(p); m->cmd = xstrdup(p);
m->use_area = false; m->use_area = false;
m->flags = 0;
SLIST_INSERT_HEAD(mousebinds, m, next); SLIST_INSERT_HEAD(mousebinds, m, next);
SLIST_INSERT_HEAD(&W->h.mousebind, m, globnext); SLIST_INSERT_HEAD(&W->h.mousebind, m, globnext);

View File

@ -74,7 +74,6 @@ status_parse_mouse(struct status_seq *sq, char *str)
m->button = ATOI(arg[0]); m->button = ATOI(arg[0]);
m->func = uicb_name_func(arg[1]); m->func = uicb_name_func(arg[1]);
m->cmd = (i > 1 ? xstrdup(arg[2]) : NULL); m->cmd = (i > 1 ? xstrdup(arg[2]) : NULL);
m->flags |= MOUSEBIND_STATUS;
SLIST_INSERT_HEAD(&sq->mousebinds, m, snext); SLIST_INSERT_HEAD(&sq->mousebinds, m, snext);

View File

@ -220,8 +220,6 @@ struct keybind
struct mousebind struct mousebind
{ {
struct geo area; struct geo area;
#define MOUSEBIND_STATUS 0x01
Flags flags;
unsigned int button; unsigned int button;
bool use_area; bool use_area;
void (*func)(Uicb); void (*func)(Uicb);