dwm-meillo

changeset 533:a5567a0d3011 1.9

do* has no Arg arument anymore (never called directly)
author Anselm R. Garbe <arg@10kloc.org>
date Fri, 06 Oct 2006 13:06:37 +0200
parents 651f2c868b31
children 3daef7425637
files client.c dwm.h event.c tag.c view.c
diffstat 5 files changed, 18 insertions(+), 18 deletions(-) [+]
line diff
     1.1 --- a/client.c	Fri Oct 06 11:50:15 2006 +0200
     1.2 +++ b/client.c	Fri Oct 06 13:06:37 2006 +0200
     1.3 @@ -246,7 +246,7 @@
     1.4  	XMapWindow(dpy, c->twin);
     1.5  	if(isvisible(c))
     1.6  		focus(c);
     1.7 -	arrange(NULL);
     1.8 +	arrange();
     1.9  }
    1.10  
    1.11  void
    1.12 @@ -393,5 +393,5 @@
    1.13  	XSync(dpy, False);
    1.14  	XSetErrorHandler(xerror);
    1.15  	XUngrabServer(dpy);
    1.16 -	arrange(NULL);
    1.17 +	arrange();
    1.18  }
     2.1 --- a/dwm.h	Fri Oct 06 11:50:15 2006 +0200
     2.2 +++ b/dwm.h	Fri Oct 06 13:06:37 2006 +0200
     2.3 @@ -99,7 +99,7 @@
     2.4  extern int screen, sx, sy, sw, sh;		/* screen geometry */
     2.5  extern unsigned int master, ntags, numlockmask;	/* master percent, number of tags, dynamic lock mask */
     2.6  extern void (*handler[LASTEvent])(XEvent *);	/* event handler */
     2.7 -extern void (*arrange)(Arg *);			/* arrange function, indicates mode  */
     2.8 +extern void (*arrange)(void);			/* arrange function, indicates mode  */
     2.9  extern Atom wmatom[WMLast], netatom[NetLast];
    2.10  extern Bool running, issel, *seltag;		/* seltag is array of Bool */
    2.11  extern Client *clients, *sel, *stack;		/* global client list and stack */
    2.12 @@ -157,8 +157,8 @@
    2.13  
    2.14  /* view.c */
    2.15  extern void detach(Client *c);			/* detaches c from global client list */
    2.16 -extern void dofloat(Arg *arg);			/* arranges all windows floating, arg is ignored */
    2.17 -extern void dotile(Arg *arg);			/* arranges all windows, arg is ignored */
    2.18 +extern void dofloat(void);			/* arranges all windows floating */
    2.19 +extern void dotile(void);			/* arranges all windows tiled */
    2.20  extern void focusnext(Arg *arg);		/* focuses next visible client, arg is ignored  */
    2.21  extern void focusprev(Arg *arg);		/* focuses previous visible client, arg is ignored */
    2.22  extern Bool isvisible(Client *c);		/* returns True if client is visible */
     3.1 --- a/event.c	Fri Oct 06 11:50:15 2006 +0200
     3.2 +++ b/event.c	Fri Oct 06 13:06:37 2006 +0200
     3.3 @@ -179,7 +179,7 @@
     3.4  				ban(c);
     3.5  		}
     3.6  		else
     3.7 -			arrange(NULL);
     3.8 +			arrange();
     3.9  	}
    3.10  	else {
    3.11  		wc.x = ev->x;
    3.12 @@ -304,7 +304,7 @@
    3.13  			case XA_WM_TRANSIENT_FOR:
    3.14  				XGetTransientForHint(dpy, c->win, &trans);
    3.15  				if(!c->isfloat && (c->isfloat = (trans != 0)))
    3.16 -					arrange(NULL);
    3.17 +					arrange();
    3.18  				break;
    3.19  			case XA_WM_NORMAL_HINTS:
    3.20  				updatesize(c);
     4.1 --- a/tag.c	Fri Oct 06 11:50:15 2006 +0200
     4.2 +++ b/tag.c	Fri Oct 06 13:06:37 2006 +0200
     4.3 @@ -117,7 +117,7 @@
     4.4  		sel->tags[i] = False;
     4.5  	sel->tags[arg->i] = True;
     4.6  	sel->weight = arg->i;
     4.7 -	arrange(NULL);
     4.8 +	arrange();
     4.9  }
    4.10  
    4.11  void
    4.12 @@ -131,5 +131,5 @@
    4.13  	if(i == ntags)
    4.14  		sel->tags[arg->i] = True;
    4.15  	sel->weight = (i == ntags) ? arg->i : i;
    4.16 -	arrange(NULL);
    4.17 +	arrange();
    4.18  }
     5.1 --- a/view.c	Fri Oct 06 11:50:15 2006 +0200
     5.2 +++ b/view.c	Fri Oct 06 13:06:37 2006 +0200
     5.3 @@ -63,7 +63,7 @@
     5.4  
     5.5  /* extern */
     5.6  
     5.7 -void (*arrange)(Arg *) = DEFMODE;
     5.8 +void (*arrange)(void) = DEFMODE;
     5.9  
    5.10  void
    5.11  detach(Client *c) {
    5.12 @@ -77,7 +77,7 @@
    5.13  }
    5.14  
    5.15  void
    5.16 -dofloat(Arg *arg) {
    5.17 +dofloat(void) {
    5.18  	Client *c;
    5.19  
    5.20  	for(c = clients; c; c = c->next) {
    5.21 @@ -95,7 +95,7 @@
    5.22  }
    5.23  
    5.24  void
    5.25 -dotile(Arg *arg) {
    5.26 +dotile(void) {
    5.27  	unsigned int i, n, mpx, stackw, stackh, th;
    5.28  	Client *c;
    5.29  
    5.30 @@ -210,7 +210,7 @@
    5.31  			return;
    5.32  		master -= arg->i;
    5.33  	}
    5.34 -	arrange(NULL);
    5.35 +	arrange();
    5.36  }
    5.37  
    5.38  void
    5.39 @@ -247,7 +247,7 @@
    5.40  togglemode(Arg *arg) {
    5.41  	arrange = (arrange == dofloat) ? dotile : dofloat;
    5.42  	if(sel)
    5.43 -		arrange(NULL);
    5.44 +		arrange();
    5.45  	else
    5.46  		drawstatus();
    5.47  }
    5.48 @@ -261,7 +261,7 @@
    5.49  	if(i == ntags)
    5.50  		seltag[arg->i] = True; /* cannot toggle last view */
    5.51  	reorder();
    5.52 -	arrange(NULL);
    5.53 +	arrange();
    5.54  }
    5.55  
    5.56  void
    5.57 @@ -272,7 +272,7 @@
    5.58  		seltag[i] = False;
    5.59  	seltag[arg->i] = True;
    5.60  	reorder();
    5.61 -	arrange(NULL);
    5.62 +	arrange();
    5.63  }
    5.64  
    5.65  void
    5.66 @@ -282,7 +282,7 @@
    5.67  	for(i = 0; i < ntags; i++)
    5.68  		seltag[i] = True;
    5.69  	reorder();
    5.70 -	arrange(NULL);
    5.71 +	arrange();
    5.72  }
    5.73  
    5.74  void
    5.75 @@ -310,5 +310,5 @@
    5.76  	c->next = clients;
    5.77  	clients = c;
    5.78  	focus(c);
    5.79 -	arrange(NULL);
    5.80 +	arrange();
    5.81  }