dwm-meillo

diff client.c @ 461:9d23330a5268

removed a bunch of lines through making function signatures more consistent with my style ( { does not belong to a new line, if function args are single-lined)
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 12 Sep 2006 10:57:28 +0200
parents ffb462fb7903
children bd32d89ed9d5
line diff
     1.1 --- a/client.c	Tue Sep 12 09:50:06 2006 +0200
     1.2 +++ b/client.c	Tue Sep 12 10:57:28 2006 +0200
     1.3 @@ -11,16 +11,14 @@
     1.4  /* static functions */
     1.5  
     1.6  static void
     1.7 -detachstack(Client *c)
     1.8 -{
     1.9 +detachstack(Client *c) {
    1.10  	Client **tc;
    1.11  	for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext);
    1.12  	*tc = c->snext;
    1.13  }
    1.14  
    1.15  static void
    1.16 -grabbuttons(Client *c, Bool focused)
    1.17 -{
    1.18 +grabbuttons(Client *c, Bool focused) {
    1.19  	XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
    1.20  
    1.21  	if(focused) {
    1.22 @@ -54,12 +52,10 @@
    1.23  	else
    1.24  		XGrabButton(dpy, AnyButton, AnyModifier, c->win, False, BUTTONMASK,
    1.25  				GrabModeAsync, GrabModeSync, None, None);
    1.26 -
    1.27  }
    1.28  
    1.29  static void
    1.30 -resizetitle(Client *c)
    1.31 -{
    1.32 +resizetitle(Client *c) {
    1.33  	c->tw = textw(c->name);
    1.34  	if(c->tw > c->w)
    1.35  		c->tw = c->w + 2;
    1.36 @@ -69,27 +65,23 @@
    1.37  		XMoveResizeWindow(dpy, c->twin, c->tx, c->ty, c->tw, c->th);
    1.38  	else
    1.39  		XMoveResizeWindow(dpy, c->twin, c->tx + 2 * sw, c->ty, c->tw, c->th);
    1.40 -
    1.41  }
    1.42  
    1.43  static int
    1.44 -xerrordummy(Display *dsply, XErrorEvent *ee)
    1.45 -{
    1.46 +xerrordummy(Display *dsply, XErrorEvent *ee) {
    1.47  	return 0;
    1.48  }
    1.49  
    1.50  /* extern functions */
    1.51  
    1.52  void
    1.53 -ban(Client *c)
    1.54 -{
    1.55 +ban(Client *c) {
    1.56  	XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
    1.57  	XMoveWindow(dpy, c->twin, c->tx + 2 * sw, c->ty);
    1.58  }
    1.59  
    1.60  void
    1.61 -focus(Client *c)
    1.62 -{
    1.63 +focus(Client *c) {
    1.64  	Client *old;
    1.65  
    1.66  	if(!issel)
    1.67 @@ -119,8 +111,7 @@
    1.68  }
    1.69  
    1.70  Client *
    1.71 -getclient(Window w)
    1.72 -{
    1.73 +getclient(Window w) {
    1.74  	Client *c;
    1.75  
    1.76  	for(c = clients; c; c = c->next)
    1.77 @@ -130,8 +121,7 @@
    1.78  }
    1.79  
    1.80  Client *
    1.81 -getctitle(Window w)
    1.82 -{
    1.83 +getctitle(Window w) {
    1.84  	Client *c;
    1.85  
    1.86  	for(c = clients; c; c = c->next)
    1.87 @@ -141,8 +131,7 @@
    1.88  }
    1.89  
    1.90  void
    1.91 -gravitate(Client *c, Bool invert)
    1.92 -{
    1.93 +gravitate(Client *c, Bool invert) {
    1.94  	int dx = 0, dy = 0;
    1.95  
    1.96  	switch(c->grav) {
    1.97 @@ -196,8 +185,7 @@
    1.98  }
    1.99  
   1.100  void
   1.101 -killclient(Arg *arg)
   1.102 -{
   1.103 +killclient(Arg *arg) {
   1.104  	if(!sel)
   1.105  		return;
   1.106  	if(sel->proto & PROTODELWIN)
   1.107 @@ -207,8 +195,7 @@
   1.108  }
   1.109  
   1.110  void
   1.111 -manage(Window w, XWindowAttributes *wa)
   1.112 -{
   1.113 +manage(Window w, XWindowAttributes *wa) {
   1.114  	Client *c;
   1.115  	Window trans;
   1.116  	XSetWindowAttributes twa;
   1.117 @@ -270,8 +257,7 @@
   1.118  }
   1.119  
   1.120  void
   1.121 -resize(Client *c, Bool sizehints, Corner sticky)
   1.122 -{
   1.123 +resize(Client *c, Bool sizehints, Corner sticky) {
   1.124  	int bottom = c->y + c->h;
   1.125  	int right = c->x + c->w;
   1.126  	XWindowChanges wc;
   1.127 @@ -309,8 +295,7 @@
   1.128  }
   1.129  
   1.130  void
   1.131 -updatesize(Client *c)
   1.132 -{
   1.133 +updatesize(Client *c) {
   1.134  	long msize;
   1.135  	XSizeHints size;
   1.136  
   1.137 @@ -348,8 +333,7 @@
   1.138  }
   1.139  
   1.140  void
   1.141 -updatetitle(Client *c)
   1.142 -{
   1.143 +updatetitle(Client *c) {
   1.144  	char **list = NULL;
   1.145  	int n;
   1.146  	XTextProperty name;
   1.147 @@ -376,8 +360,7 @@
   1.148  }
   1.149  
   1.150  void
   1.151 -togglemax(Arg *arg)
   1.152 -{
   1.153 +togglemax(Arg *arg) {
   1.154  	int ox, oy, ow, oh;
   1.155  	Client *c;
   1.156  	XEvent ev;
   1.157 @@ -412,8 +395,7 @@
   1.158  }
   1.159  
   1.160  void
   1.161 -unmanage(Client *c)
   1.162 -{
   1.163 +unmanage(Client *c) {
   1.164  	Client *nc;
   1.165  
   1.166  	XGrabServer(dpy);