From ca65478c8968434c78aacf4a102ccbbe4a66ad9e Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 12 Sep 2006 10:57:28 +0200 Subject: 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) --- main.c | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index f63a697..c6e67e9 100644 --- a/main.c +++ b/main.c @@ -39,8 +39,7 @@ static int (*xerrorxlib)(Display *, XErrorEvent *); static Bool otherwm, readin; static void -cleanup() -{ +cleanup() { close(STDIN_FILENO); while(sel) { resize(sel, True, TopLeft); @@ -60,8 +59,7 @@ cleanup() } static void -scan() -{ +scan() { unsigned int i, num; Window *wins, d1, d2; XWindowAttributes wa; @@ -82,8 +80,7 @@ scan() } static void -setup() -{ +setup() { int i, j; unsigned int mask; Window w; @@ -112,7 +109,8 @@ setup() } XFree(modmap); - wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask | EnterWindowMask | LeaveWindowMask; + wa.event_mask = SubstructureRedirectMask | SubstructureNotifyMask + | EnterWindowMask | LeaveWindowMask; wa.cursor = cursor[CurNormal]; XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa); @@ -163,8 +161,7 @@ setup() * is already running. */ static int -xerrorstart(Display *dsply, XErrorEvent *ee) -{ +xerrorstart(Display *dsply, XErrorEvent *ee) { otherwm = True; return -1; } @@ -172,8 +169,7 @@ xerrorstart(Display *dsply, XErrorEvent *ee) /* extern */ int -getproto(Window w) -{ +getproto(Window w) { int i, format, protos, status; unsigned long extra, res; Atom *protocols, real; @@ -191,8 +187,7 @@ getproto(Window w) } void -sendevent(Window w, Atom a, long value) -{ +sendevent(Window w, Atom a, long value) { XEvent e; e.type = ClientMessage; @@ -206,8 +201,7 @@ sendevent(Window w, Atom a, long value) } void -quit(Arg *arg) -{ +quit(Arg *arg) { readin = running = False; } @@ -217,8 +211,7 @@ quit(Arg *arg) * default error handler, which may call exit. */ int -xerror(Display *dpy, XErrorEvent *ee) -{ +xerror(Display *dpy, XErrorEvent *ee) { if(ee->error_code == BadWindow || (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch) || (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable) @@ -234,8 +227,7 @@ xerror(Display *dpy, XErrorEvent *ee) } int -main(int argc, char *argv[]) -{ +main(int argc, char *argv[]) { int r, xfd; fd_set rd; -- cgit v1.2.3-13-gbd6f