Calculate client nameqlen in client_setname(), the only place it's

needed/used.
This commit is contained in:
okan
2016-10-04 15:52:32 +00:00
parent 9306c1fbd3
commit 5c13775d31
3 changed files with 9 additions and 8 deletions

View File

@@ -187,8 +187,6 @@ struct client_ctx {
int flags;
int stackingorder;
struct winname_q nameq;
#define CLIENT_MAXNAMEQLEN 5
int nameqlen;
char *name;
char *label;
char *matchname;
@@ -284,6 +282,7 @@ struct conf {
struct cmd_q cmdq;
int ngroups;
int stickygroups;
int nameqlen;
int bwidth;
int mamount;
int snapdist;