extern int screen, sx, sy, sw, sh; /* screen geometry */
extern unsigned int master, ntags, numlockmask; /* master percent, number of tags, dynamic lock mask */
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 Bool running, issel, *seltag; /* seltag is array of Bool */
extern Client *clients, *sel, *stack; /* global client list and stack */
/* view.c */
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 dotile(Arg *arg); /* arranges all windows, arg is ignored */
+extern void dofloat(void); /* arranges all windows floating */
+extern void dotile(void); /* arranges all windows tiled */
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 Bool isvisible(Client *c); /* returns True if client is visible */
ban(c);
}
else
- arrange(NULL);
+ arrange();
}
else {
wc.x = ev->x;
case XA_WM_TRANSIENT_FOR:
XGetTransientForHint(dpy, c->win, &trans);
if(!c->isfloat && (c->isfloat = (trans != 0)))
- arrange(NULL);
+ arrange();
break;
case XA_WM_NORMAL_HINTS:
updatesize(c);
/* extern */
-void (*arrange)(Arg *) = DEFMODE;
+void (*arrange)(void) = DEFMODE;
void
detach(Client *c) {
}
void
-dofloat(Arg *arg) {
+dofloat(void) {
Client *c;
for(c = clients; c; c = c->next) {
}
void
-dotile(Arg *arg) {
+dotile(void) {
unsigned int i, n, mpx, stackw, stackh, th;
Client *c;
return;
master -= arg->i;
}
- arrange(NULL);
+ arrange();
}
void
togglemode(Arg *arg) {
arrange = (arrange == dofloat) ? dotile : dofloat;
if(sel)
- arrange(NULL);
+ arrange();
else
drawstatus();
}
if(i == ntags)
seltag[arg->i] = True; /* cannot toggle last view */
reorder();
- arrange(NULL);
+ arrange();
}
void
seltag[i] = False;
seltag[arg->i] = True;
reorder();
- arrange(NULL);
+ arrange();
}
void
for(i = 0; i < ntags; i++)
seltag[i] = True;
reorder();
- arrange(NULL);
+ arrange();
}
void
c->next = clients;
clients = c;
focus(c);
- arrange(NULL);
+ arrange();
}