wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit c1ec76e02b87209ad587478270493bc20a8fa044
parent 95a2527e1195670e43660321adc8f08f944207f0
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Mon,  6 Mar 2006 10:46:34 +0100

removed unnecessary stuff


Diffstat:
cmd/wm/area.c | 9---------
cmd/wm/tag.c | 2+-
cmd/wm/wm.h | 1-
3 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/cmd/wm/area.c b/cmd/wm/area.c @@ -412,12 +412,3 @@ resize_area(Client *c, XRectangle *r, XPoint *pt) else drop_resize(f, r); } - -Area * -new_area(Tag *t) -{ - Area *a = alloc_area(t); - arrange_tag(t, True); - return a; -} - diff --git a/cmd/wm/tag.c b/cmd/wm/tag.c @@ -202,7 +202,7 @@ update_ctags() exists = True; if(!exists) { for(j = 0; j < ntag; j++) - if(strstr(tag[j]->name, ctag[i])) { + if(!strncmp(tag[j]->name, ctag[i], strlen(tag[j]->name))) { destroy_tag(tag[j]); j--; } diff --git a/cmd/wm/wm.h b/cmd/wm/wm.h @@ -214,7 +214,6 @@ void detach_fromarea(Client *c); void arrange_tag(Tag *t, Bool updategeometry); void arrange_area(Area *a); void resize_area(Client *c, XRectangle *r, XPoint *pt); -Area *new_area(Tag *t); int str2mode(char *arg); char *mode2str(int mode);