wmii

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

commit e79751781716b14bf4653aaeba2239a470f21174
parent 7e8ab56d9158d5235a5f90d96abb96bcb4c30474
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Sun,  5 Mar 2006 19:27:32 +0100

added 'nil' tag as default policy


Diffstat:
cmd/wm/client.c | 27+--------------------------
cmd/wm/fs.c | 2--
cmd/wm/wm.c | 3---
cmd/wm/wm.h | 1-
rc/wmiirc | 6------
5 files changed, 1 insertion(+), 38 deletions(-)

diff --git a/cmd/wm/client.c b/cmd/wm/client.c @@ -343,7 +343,7 @@ attach_client(Client *c) { Tag *t; if(!ntag) - t = alloc_tag("new"); + t = alloc_tag("nil"); else t = tag[sel]; @@ -516,31 +516,6 @@ select_client(Client *c, char *arg) } void -sendtotag_client(Client *c, char *arg) -{ - Tag *t; - Client *to; - - if(!strncmp(arg, "new", 4)) - t = alloc_tag("new"); - else if(!strncmp(arg, "sel", 4)) - t = tag[sel]; - else { - const char *errstr; - int i = cext_strtonum(arg, 0, ntag - 1, &errstr); - if(errstr) - return; - t = tag[i]; - } - detach_client(c, False); - attach_totag(t, c); - if(t == tag[sel]) - focus_client(c); - else if((to = sel_client_of_tag(tag[sel]))) - focus_client(to); -} - -void sendtoarea_client(Client *c, char *arg) { const char *errstr; diff --git a/cmd/wm/fs.c b/cmd/wm/fs.c @@ -1138,8 +1138,6 @@ xwrite(IXPConn *c, Fcall *fcall) f = tag[i1]->area[i2]->frame[i3]; if(!strncmp(buf, "kill", 5)) kill_client(f->client); - else if(!strncmp(buf, "sendtotag ", 11)) - sendtotag_client(f->client, &buf[11]); else if(!strncmp(buf, "sendtoarea ", 11)) sendtoarea_client(f->client, &buf[11]); break; diff --git a/cmd/wm/wm.c b/cmd/wm/wm.c @@ -356,9 +356,6 @@ main(int argc, char *argv[]) DefaultDepth(dpy, screen)); XMapRaised(dpy, winbar); draw_bar(); - - alloc_tag("scratch"); - alloc_tag("default"); scan_wins(); /* main event loop */ diff --git a/cmd/wm/wm.h b/cmd/wm/wm.h @@ -248,7 +248,6 @@ void resize_client(Client *c, XRectangle *r, XPoint *pt, Bool ignore_xcall); int frid2index(Area *a, unsigned short id); int frame2index(Frame *f); void select_client(Client *c, char *arg); -void sendtotag_client(Client *c, char *arg); void sendtoarea_client(Client *c, char *arg); void resize_all_clients(); void focus(Client *c); diff --git a/rc/wmiirc b/rc/wmiirc @@ -85,8 +85,6 @@ $MODKEY-Shift-6 $MODKEY-Shift-7 $MODKEY-Shift-8 $MODKEY-Shift-9 -$MODKEY-d -$MODKEY-a EOF # EVENT LOOP @@ -153,10 +151,6 @@ do xwrite /ctl select next;; $MODKEY-Shift-[0-9]) xwrite /ctl select `echo $1 | sed 's/.*-//'`;; - $MODKEY-d) - xwrite /sel/sel/sel/ctl sendtopage 0;; - $MODKEY-a) - xwrite /0/sel/sel/ctl sendtopage sel;; esac;; esac done &