dwm-meillo

diff view.c @ 533:a5567a0d3011

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 13ef0d218c67
line diff
     1.1 --- a/view.c	Fri Oct 06 11:50:15 2006 +0200
     1.2 +++ b/view.c	Fri Oct 06 13:06:37 2006 +0200
     1.3 @@ -63,7 +63,7 @@
     1.4  
     1.5  /* extern */
     1.6  
     1.7 -void (*arrange)(Arg *) = DEFMODE;
     1.8 +void (*arrange)(void) = DEFMODE;
     1.9  
    1.10  void
    1.11  detach(Client *c) {
    1.12 @@ -77,7 +77,7 @@
    1.13  }
    1.14  
    1.15  void
    1.16 -dofloat(Arg *arg) {
    1.17 +dofloat(void) {
    1.18  	Client *c;
    1.19  
    1.20  	for(c = clients; c; c = c->next) {
    1.21 @@ -95,7 +95,7 @@
    1.22  }
    1.23  
    1.24  void
    1.25 -dotile(Arg *arg) {
    1.26 +dotile(void) {
    1.27  	unsigned int i, n, mpx, stackw, stackh, th;
    1.28  	Client *c;
    1.29  
    1.30 @@ -210,7 +210,7 @@
    1.31  			return;
    1.32  		master -= arg->i;
    1.33  	}
    1.34 -	arrange(NULL);
    1.35 +	arrange();
    1.36  }
    1.37  
    1.38  void
    1.39 @@ -247,7 +247,7 @@
    1.40  togglemode(Arg *arg) {
    1.41  	arrange = (arrange == dofloat) ? dotile : dofloat;
    1.42  	if(sel)
    1.43 -		arrange(NULL);
    1.44 +		arrange();
    1.45  	else
    1.46  		drawstatus();
    1.47  }
    1.48 @@ -261,7 +261,7 @@
    1.49  	if(i == ntags)
    1.50  		seltag[arg->i] = True; /* cannot toggle last view */
    1.51  	reorder();
    1.52 -	arrange(NULL);
    1.53 +	arrange();
    1.54  }
    1.55  
    1.56  void
    1.57 @@ -272,7 +272,7 @@
    1.58  		seltag[i] = False;
    1.59  	seltag[arg->i] = True;
    1.60  	reorder();
    1.61 -	arrange(NULL);
    1.62 +	arrange();
    1.63  }
    1.64  
    1.65  void
    1.66 @@ -282,7 +282,7 @@
    1.67  	for(i = 0; i < ntags; i++)
    1.68  		seltag[i] = True;
    1.69  	reorder();
    1.70 -	arrange(NULL);
    1.71 +	arrange();
    1.72  }
    1.73  
    1.74  void
    1.75 @@ -310,5 +310,5 @@
    1.76  	c->next = clients;
    1.77  	clients = c;
    1.78  	focus(c);
    1.79 -	arrange(NULL);
    1.80 +	arrange();
    1.81  }