summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2009-09-23 10:35:06 +0200
committerEnno Boland (tox) <tox@s01.de>2009-09-23 10:35:06 +0200
commit44d0720f9c352017b9c49a8dae6f9fbeb2f54163 (patch)
tree31f878cbeab2efe2563a1a2243b94cf0a84d302d
parent0ad9b7f35c4095dbf660eea549aec2d8f184816d (diff)
small variable fixes
-rw-r--r--tabbed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tabbed.c b/tabbed.c
index 65e5f34..ff5febf 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -253,7 +253,7 @@ drawbar() {
for(c = clients; c; c = c->next)
c->tabx = -1;
for(n = 0, fc = c = getfirsttab(); c; c = c->next, n++);
- if(n * 200 > width) {
+ if(n * tabwidth > width) {
dc.w = TEXTW(after);
dc.x = width - dc.w;
drawtext(after, dc.sel);
@@ -273,7 +273,7 @@ drawbar() {
if(n * tabwidth > width)
dc.w += width % tabwidth;
else
- dc.w = width - (n - 1) * 200;
+ dc.w = width - (n - 1) * tabwidth;
}
else {
col = dc.norm;