do* has no Arg arument anymore (never called directly)

master
Anselm R. Garbe 2006-10-06 13:06:37 +02:00
parent 6651dd7fd9
commit 5983c00b95
5 changed files with 18 additions and 18 deletions

View File

@ -246,7 +246,7 @@ manage(Window w, XWindowAttributes *wa) {
XMapWindow(dpy, c->twin); XMapWindow(dpy, c->twin);
if(isvisible(c)) if(isvisible(c))
focus(c); focus(c);
arrange(NULL); arrange();
} }
void void
@ -393,5 +393,5 @@ unmanage(Client *c) {
XSync(dpy, False); XSync(dpy, False);
XSetErrorHandler(xerror); XSetErrorHandler(xerror);
XUngrabServer(dpy); XUngrabServer(dpy);
arrange(NULL); arrange();
} }

6
dwm.h
View File

@ -99,7 +99,7 @@ extern int bx, by, bw, bh, bmw; /* bar geometry, bar mode label width */
extern int screen, sx, sy, sw, sh; /* screen geometry */ extern int screen, sx, sy, sw, sh; /* screen geometry */
extern unsigned int master, ntags, numlockmask; /* master percent, number of tags, dynamic lock mask */ extern unsigned int master, ntags, numlockmask; /* master percent, number of tags, dynamic lock mask */
extern void (*handler[LASTEvent])(XEvent *); /* event handler */ extern void (*handler[LASTEvent])(XEvent *); /* event handler */
extern void (*arrange)(Arg *); /* arrange function, indicates mode */ extern void (*arrange)(void); /* arrange function, indicates mode */
extern Atom wmatom[WMLast], netatom[NetLast]; extern Atom wmatom[WMLast], netatom[NetLast];
extern Bool running, issel, *seltag; /* seltag is array of Bool */ extern Bool running, issel, *seltag; /* seltag is array of Bool */
extern Client *clients, *sel, *stack; /* global client list and stack */ extern Client *clients, *sel, *stack; /* global client list and stack */
@ -157,8 +157,8 @@ extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */
/* view.c */ /* view.c */
extern void detach(Client *c); /* detaches c from global client list */ extern void detach(Client *c); /* detaches c from global client list */
extern void dofloat(Arg *arg); /* arranges all windows floating, arg is ignored */ extern void dofloat(void); /* arranges all windows floating */
extern void dotile(Arg *arg); /* arranges all windows, arg is ignored */ extern void dotile(void); /* arranges all windows tiled */
extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */
extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */
extern Bool isvisible(Client *c); /* returns True if client is visible */ extern Bool isvisible(Client *c); /* returns True if client is visible */

View File

@ -179,7 +179,7 @@ configurerequest(XEvent *e) {
ban(c); ban(c);
} }
else else
arrange(NULL); arrange();
} }
else { else {
wc.x = ev->x; wc.x = ev->x;
@ -304,7 +304,7 @@ propertynotify(XEvent *e) {
case XA_WM_TRANSIENT_FOR: case XA_WM_TRANSIENT_FOR:
XGetTransientForHint(dpy, c->win, &trans); XGetTransientForHint(dpy, c->win, &trans);
if(!c->isfloat && (c->isfloat = (trans != 0))) if(!c->isfloat && (c->isfloat = (trans != 0)))
arrange(NULL); arrange();
break; break;
case XA_WM_NORMAL_HINTS: case XA_WM_NORMAL_HINTS:
updatesize(c); updatesize(c);

4
tag.c
View File

@ -117,7 +117,7 @@ tag(Arg *arg) {
sel->tags[i] = False; sel->tags[i] = False;
sel->tags[arg->i] = True; sel->tags[arg->i] = True;
sel->weight = arg->i; sel->weight = arg->i;
arrange(NULL); arrange();
} }
void void
@ -131,5 +131,5 @@ toggletag(Arg *arg) {
if(i == ntags) if(i == ntags)
sel->tags[arg->i] = True; sel->tags[arg->i] = True;
sel->weight = (i == ntags) ? arg->i : i; sel->weight = (i == ntags) ? arg->i : i;
arrange(NULL); arrange();
} }

18
view.c
View File

@ -63,7 +63,7 @@ togglemax(Client *c) {
/* extern */ /* extern */
void (*arrange)(Arg *) = DEFMODE; void (*arrange)(void) = DEFMODE;
void void
detach(Client *c) { detach(Client *c) {
@ -77,7 +77,7 @@ detach(Client *c) {
} }
void void
dofloat(Arg *arg) { dofloat(void) {
Client *c; Client *c;
for(c = clients; c; c = c->next) { for(c = clients; c; c = c->next) {
@ -95,7 +95,7 @@ dofloat(Arg *arg) {
} }
void void
dotile(Arg *arg) { dotile(void) {
unsigned int i, n, mpx, stackw, stackh, th; unsigned int i, n, mpx, stackw, stackh, th;
Client *c; Client *c;
@ -210,7 +210,7 @@ resizecol(Arg *arg) {
return; return;
master -= arg->i; master -= arg->i;
} }
arrange(NULL); arrange();
} }
void void
@ -247,7 +247,7 @@ void
togglemode(Arg *arg) { togglemode(Arg *arg) {
arrange = (arrange == dofloat) ? dotile : dofloat; arrange = (arrange == dofloat) ? dotile : dofloat;
if(sel) if(sel)
arrange(NULL); arrange();
else else
drawstatus(); drawstatus();
} }
@ -261,7 +261,7 @@ toggleview(Arg *arg) {
if(i == ntags) if(i == ntags)
seltag[arg->i] = True; /* cannot toggle last view */ seltag[arg->i] = True; /* cannot toggle last view */
reorder(); reorder();
arrange(NULL); arrange();
} }
void void
@ -272,7 +272,7 @@ view(Arg *arg) {
seltag[i] = False; seltag[i] = False;
seltag[arg->i] = True; seltag[arg->i] = True;
reorder(); reorder();
arrange(NULL); arrange();
} }
void void
@ -282,7 +282,7 @@ viewall(Arg *arg) {
for(i = 0; i < ntags; i++) for(i = 0; i < ntags; i++)
seltag[i] = True; seltag[i] = True;
reorder(); reorder();
arrange(NULL); arrange();
} }
void void
@ -310,5 +310,5 @@ zoom(Arg *arg) {
c->next = clients; c->next = clients;
clients = c; clients = c;
focus(c); focus(c);
arrange(NULL); arrange();
} }