diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2009-07-09 11:29:01 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2009-07-09 11:29:01 +0100 |
commit | 565050ac51687bbd4f388c6aeb2298db94430efb (patch) | |
tree | a809afd143c5a1711d282782391264daa3ab04c9 /dwm.c | |
parent | 5e408d8ff65c8609898ad792cdeeac443f28be7a (diff) | |
download | dwm-565050ac51687bbd4f388c6aeb2298db94430efb.tar.gz |
removed monsyms, useless
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/dwm.c b/dwm.c index fa5fdea..07d0d36 100644 --- a/dwm.c +++ b/dwm.c @@ -123,7 +123,7 @@ typedef struct { struct Monitor { int screen_number; float mfact; - int by, btx; /* bar geometry */ + int by; /* bar geometry */ int mx, my, mw, mh; /* screen size */ int wx, wy, ww, wh; /* window area */ unsigned int seltags; @@ -409,9 +409,8 @@ buttonpress(XEvent *e) { selmon = m; focus(NULL); } - if(ev->window == selmon->barwin && ev->x >= selmon->btx) { - i = 0; - x = selmon->btx; + if(ev->window == selmon->barwin) { + i = x = 0; do x += TEXTW(tags[i]); while(ev->x >= x && ++i < LENGTH(tags)); @@ -652,12 +651,6 @@ drawbar(Monitor *m) { urg |= c->tags; } dc.x = 0; - if(mons->next) { /* more than a single monitor */ - dc.w = TEXTW(monsyms[m->screen_number]); - drawtext(monsyms[m->screen_number], selmon == m ? dc.sel : dc.norm, False); - dc.x += dc.w; - } - m->btx = dc.x; for(i = 0; i < LENGTH(tags); i++) { dc.w = TEXTW(tags[i]); col = m->tagset[m->seltags] & 1 << i ? dc.sel : dc.norm; @@ -1690,8 +1683,6 @@ updategeom(void) { if(XineramaIsActive(dpy)) info = XineramaQueryScreens(dpy, &n); #endif /* XINERAMA */ - if(n > LENGTH(monsyms)) - n = LENGTH(monsyms); /* allocate monitor(s) for the new geometry setup */ for(i = 0; i < n; i++) { if(!(m = (Monitor *)malloc(sizeof(Monitor)))) |