changeset: 1828:3cbe4b6be10e
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sat Feb 10 03:09:19 2007 -0500
summary: Some more cleanup
diff -r f6c829317955 -r 3cbe4b6be10e area.c
--- a/area.c Sat Feb 10 02:48:13 2007 -0500
+++ b/area.c Sat Feb 10 03:09:19 2007 -0500
@@ -399,15 +399,15 @@ select_area(Area *a, char *arg) {
else {
if(sscanf(arg, "%d", &i) != 1)
return Ebadvalue;
- for(new=view->area; i && new->next; new=new->next)
- i--;
+ for(new=view->area; new->next; new=new->next)
+ if(!--i) break;;
}
focus_area(new);
return nil;
focus_client:
frame_to_top(p);
- focus_client(p->client, True);
+ focus_client(p->client, False);
if(v == screen->sel)
restack_view(v);
flush_masked_events(EnterWindowMask);
diff -r f6c829317955 -r 3cbe4b6be10e client.c
--- a/client.c Sat Feb 10 02:48:13 2007 -0500
+++ b/client.c Sat Feb 10 03:09:19 2007 -0500
@@ -9,8 +9,8 @@
static void update_client_name(Client *c);
-static char *Ebadcmd = "bad command",
- *Ebadvalue = "bad value";
+static char Ebadcmd[] = "bad command",
+ Ebadvalue[] = "bad value";
#define CLIENT_MASK (StructureNotifyMask | PropertyChangeMask | EnterWindowMask)
#define ButtonMask (ButtonPressMask | ButtonReleaseMask)
@@ -322,11 +322,11 @@ prop_client(Client *c, XPropertyEvent *e
case XA_WM_HINTS:
wmh = XGetWMHints(blz.dpy, c->win);
if(wmh->flags&XUrgencyHint && !client->urgent) {
- write_event("Urgent 0x%x\n", client->win);;
+ write_event("Urgent 0x%x\n", client->win);
client->urgent = True;
}
else if(!(wmh->flags&XUrgencyHint) && client->urgent) {
- write_event("NotUrgent 0x%x\n", client->win);;
+ write_event("NotUrgent 0x%x\n", client->win);
client->urgent = False;
}
break;
@@ -638,7 +638,6 @@ send_client(Frame *f, char *arg) {
remove_frame(f);
insert_frame(tf, f, True);
arrange_column(a, False);
- focus_client(c, True);
}
else if(!strncmp(arg, "down", 5)) {
if(!f->anext)
@@ -646,19 +645,18 @@ send_client(Frame *f, char *arg) {
remove_frame(f);
insert_frame(f->anext, f, False);
arrange_column(a, False);
- focus_client(c, True);
}
else {
if(sscanf(arg, "%d", &j) != 1)
return Ebadvalue;
- for(to=v->area; to && j; to=to->next, j--);
+ for(to=v->area; to; to=to->next)
+ if(!--j) break;
send_to_area(to, a, f);
}
}else
return Ebadvalue;
flush_masked_events(EnterWindowMask);
- if(f->view == screen->sel)
- focus(f->client, True);
+ focus_client(f->client, True);
update_views();
return nil;
}
diff -r f6c829317955 -r 3cbe4b6be10e fs.c
--- a/fs.c Sat Feb 10 02:48:13 2007 -0500
+++ b/fs.c Sat Feb 10 03:09:19 2007 -0500
@@ -59,11 +59,11 @@ enum { /* Dirs */
/* Error messages */
static char
- *Enoperm = "permission denied",
- *Enofile = "file not found",
- *Ebadvalue = "bad value",
- *Einterrupted = "interrupted",
- *Ebadcmd = "bad command";
+ Enoperm[] = "permission denied",
+ Enofile[] = "file not found",
+ Ebadvalue[] = "bad value",
+ Einterrupted[] = "interrupted",
+ Ebadcmd[] = "bad command";
/* Macros */
#define QID(t, i) (((long long)((t)&0xFF)<<32)|((i)&0xFFFFFFFF))
diff -r f6c829317955 -r 3cbe4b6be10e wmii.h
--- a/wmii.h Sat Feb 10 02:48:13 2007 -0500
+++ b/wmii.h Sat Feb 10 03:09:19 2007 -0500
@@ -285,7 +285,6 @@ extern char * message_client(Client *c,
extern char * message_client(Client *c, char *message);
extern void move_client(Client *c, char *arg);
extern void size_client(Client *c, char *arg);
-extern void newcol_client(Client *c, char *arg);
extern Client *sel_client();
extern Frame *frame_of_win(Window w);
extern Client *client_of_win(Window w);
Received on Sat Feb 10 2007 - 09:14:09 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:08 UTC