aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2016-10-04 15:52:32 +0000
committerokan2016-10-04 15:52:32 +0000
commitcb6c7d73322f62354a979a5338b41a5a297c5795 (patch)
treee419fe5eb7e5b15cdf4d1a7fdc9e83b20b918f35 /calmwm.h
parent2e16db28638cf0e78e6ddae11521a1f589179f67 (diff)
downloadcwm-cb6c7d73322f62354a979a5338b41a5a297c5795.tar.gz
Calculate client nameqlen in client_setname(), the only place it's
needed/used.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/calmwm.h b/calmwm.h
index b70c4db..d3b81b9 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.h,v 1.322 2016/10/04 15:18:20 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.323 2016/10/04 15:52:32 okan Exp $
*/
#ifndef _CALMWM_H_
@@ -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;