From 4ff0dae17ef42530550aa0be3532aa8370e7b245 Mon Sep 17 00:00:00 2001 From: marco candrian Date: Wed, 13 Feb 2008 06:53:08 +0100 Subject: [PATCH] trailing whitespaces removed like: find . -iname "*.txt" -o -iname "*.c" -o -iname "*.h" | xargs sed -i 's/\s\+$//' Signed-off-by: Julien Danjou --- awesome-client.1.txt | 4 ++-- awesome.c | 10 +++++----- client.c | 6 +++--- client.h | 8 ++++---- common/list.h | 2 +- config.c | 2 +- ewmh.c | 8 ++++---- focus.c | 2 +- rules.c | 2 +- rules.h | 2 +- statusbar.c | 4 ++-- widget.c | 2 +- widgets/focusicon.c | 2 +- widgets/iconbox.c | 2 +- widgets/tasklist.c | 4 ++-- window.c | 4 ++-- 16 files changed, 32 insertions(+), 32 deletions(-) diff --git a/awesome-client.1.txt b/awesome-client.1.txt index bc0515491..250da80d2 100644 --- a/awesome-client.1.txt +++ b/awesome-client.1.txt @@ -31,11 +31,11 @@ The command format is: For example, to change statusbar text on screen 0, you can do the following: echo 0 widget_tell Hello, world | awesome-client - + To view tag number 3 on screen 1: echo 1 tag_view 3 | awesome-client - + To zoom focused window on screen 0: echo 0 client_zoom | awesome-client diff --git a/awesome.c b/awesome.c index 821467723..4981494af 100644 --- a/awesome.c +++ b/awesome.c @@ -374,7 +374,7 @@ main(int argc, char *argv[]) /* refresh everything before waiting events */ statusbar_refresh(); layout_refresh(); - + /* main event loop, also reads status text from socket */ while(running) { @@ -419,7 +419,7 @@ main(int argc, char *argv[]) XNextEvent(dpy, &ev); if(handler[ev.type]) handler[ev.type](&ev); - + /* drop events requested to */ if(globalconf.drop_events) { @@ -428,14 +428,14 @@ main(int argc, char *argv[]) while(XCheckMaskEvent(dpy, globalconf.drop_events, &ev)); globalconf.drop_events = NoEventMask; } - + /* need to resync */ XSync(dpy, False); } - + statusbar_refresh(); layout_refresh(); - + /* need to resync */ XSync(dpy, False); } diff --git a/client.c b/client.c index 4b9d0fb8a..6e5f5929f 100644 --- a/client.c +++ b/client.c @@ -401,7 +401,7 @@ client_manage(Window w, XWindowAttributes *wa, int screen) if(!(flags & (USPosition | PPosition))) c->f_geometry = client_get_smart_geometry(c->f_geometry, c->border, c->screen); - + XSelectInput(globalconf.display, w, StructureNotifyMask | PropertyChangeMask | EnterWindowMask); /* handle xshape */ @@ -437,7 +437,7 @@ client_manage(Window w, XWindowAttributes *wa, int screen) /* some windows require this */ XMoveResizeWindow(globalconf.display, c->win, c->geometry.x, c->geometry.y, c->geometry.width, c->geometry.height); - + widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); ewmh_update_net_client_list(phys_screen); } @@ -942,7 +942,7 @@ uicb_client_kill(int screen __attribute__ ((unused)), char *arg __attribute__ (( static void client_maximize(Client *c, Area geometry) { - + if((c->ismax = !c->ismax)) { c->wasfloating = c->isfloating; diff --git a/client.h b/client.h index 10d7ca1c2..f0928619d 100644 --- a/client.h +++ b/client.h @@ -36,7 +36,7 @@ void client_unmanage(Client *); void client_updatewmhints(Client *); long client_updatesizehints(Client *); void client_updatetitle(Client *); -void client_saveprops(Client *); +void client_saveprops(Client *); void client_kill(Client *); void client_setfloating(Client *, Bool); @@ -45,9 +45,9 @@ Uicb uicb_client_moveresize; Uicb uicb_client_settrans; Uicb uicb_client_swapnext; Uicb uicb_client_swapprev; -Uicb uicb_client_togglemax; -Uicb uicb_client_toggleverticalmax; -Uicb uicb_client_togglehorizontalmax; +Uicb uicb_client_togglemax; +Uicb uicb_client_toggleverticalmax; +Uicb uicb_client_togglehorizontalmax; Uicb uicb_client_zoom; Uicb uicb_client_focusnext; Uicb uicb_client_focusprev; diff --git a/common/list.h b/common/list.h index bde59d343..157aeb372 100644 --- a/common/list.h +++ b/common/list.h @@ -133,6 +133,6 @@ *list = item->next; \ item->next = NULL; \ } \ - + #endif // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 diff --git a/config.c b/config.c index a695bde02..150233b52 100644 --- a/config.c +++ b/config.c @@ -113,7 +113,7 @@ mouse_button_lookup(const char *button) {NULL, 0} }; int i; - + if(button) for(i = 0; MouseButtonList[i].name; i++) if(!a_strcmp(button, MouseButtonList[i].name)) diff --git a/ewmh.c b/ewmh.c index 5402cd984..ac2672582 100644 --- a/ewmh.c +++ b/ewmh.c @@ -88,7 +88,7 @@ static AtomItem AtomNames[] = { "UTF8_STRING", &utf8_string }, }; -#define ATOM_NUMBER (sizeof(AtomNames)/sizeof(AtomItem)) +#define ATOM_NUMBER (sizeof(AtomNames)/sizeof(AtomItem)) #define _NET_WM_STATE_REMOVE 0 #define _NET_WM_STATE_ADD 1 @@ -100,7 +100,7 @@ ewmh_init_atoms(void) unsigned int i; char *names[ATOM_NUMBER]; Atom atoms[ATOM_NUMBER]; - + for(i = 0; i < ATOM_NUMBER; i++) names[i] = (char *) AtomNames[i].name; XInternAtoms(globalconf.display, names, ATOM_NUMBER, False, atoms); @@ -122,7 +122,7 @@ ewmh_set_supported_hints(int phys_screen) atom[i++] = net_active_window; atom[i++] = net_close_window; - + atom[i++] = net_wm_name; atom[i++] = net_wm_icon_name; atom[i++] = net_wm_window_type; @@ -189,7 +189,7 @@ ewmh_update_net_current_desktop(int phys_screen) XChangeProperty(globalconf.display, RootWindow(globalconf.display, phys_screen), net_current_desktop, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &count, 1); - + p_delete(&curtags); } diff --git a/focus.c b/focus.c index ff289dc7d..8c6a40585 100644 --- a/focus.c +++ b/focus.c @@ -20,7 +20,7 @@ */ #include "tag.h" -#include "focus.h" +#include "focus.h" #include "client.h" extern AwesomeConf globalconf; diff --git a/rules.c b/rules.c index 5cd5305d1..2085978d2 100644 --- a/rules.c +++ b/rules.c @@ -74,7 +74,7 @@ client_match_rule(Client *c, Rule *r) if(ret) return True; } - + if(r->xprop && r->xpropval_r && xgettextprop(c->win, diff --git a/rules.h b/rules.h index 2a6293504..3640d98fe 100644 --- a/rules.h +++ b/rules.h @@ -26,7 +26,7 @@ #define RULE_NOSCREEN -1 -regex_t * rules_compile_regex(char *); +regex_t * rules_compile_regex(char *); Bool tag_match_rule(Tag *, Rule *); Fuzzy rules_get_fuzzy_from_str(const char *); Rule * rule_matching_client(Client *); diff --git a/statusbar.c b/statusbar.c index 5b51df974..cc57369e4 100644 --- a/statusbar.c +++ b/statusbar.c @@ -188,7 +188,7 @@ statusbar_init(Statusbar *statusbar) globalconf.screens[statusbar->screen].statusbar, &globalconf.screens[statusbar->screen].padding); - + /* Top and Bottom Statusbar have prio */ for(sb = globalconf.screens[statusbar->screen].statusbar; sb; sb = sb->next) switch(sb->position) @@ -253,7 +253,7 @@ statusbar_refresh() Position statusbar_get_position_from_str(const char *pos) { - if(!a_strncmp(pos, "off", 3)) + if(!a_strncmp(pos, "off", 3)) return Off; else if(!a_strncmp(pos, "bottom", 6)) return Bottom; diff --git a/widget.c b/widget.c index 2b6ebbe7b..c36af93e3 100644 --- a/widget.c +++ b/widget.c @@ -63,7 +63,7 @@ widget_find(char *name, int screen) { Widget *widget; Statusbar *sb; - + for(sb = globalconf.screens[screen].statusbar; sb; sb = sb->next) for(widget = sb->widgets; widget; widget = widget->next) if(a_strcmp(name, widget->name) == 0) diff --git a/widgets/focusicon.c b/widgets/focusicon.c index 0c7599d60..fbdd72857 100644 --- a/widgets/focusicon.c +++ b/widgets/focusicon.c @@ -101,7 +101,7 @@ focusicon_new(Statusbar *statusbar, cfg_t *config) widget_common_new(w, statusbar, config); w->draw = focusicon_draw; w->alignment = draw_get_align(cfg_getstr(config, "align")); - + /* Set cache property */ w->cache.flags = WIDGET_CACHE_CLIENTS; diff --git a/widgets/iconbox.c b/widgets/iconbox.c index 9b9d24283..7c999bad9 100644 --- a/widgets/iconbox.c +++ b/widgets/iconbox.c @@ -87,7 +87,7 @@ iconbox_new(Statusbar *statusbar, cfg_t *config) w->data = d = p_new(Data, 1); d->image = a_strdup(cfg_getstr(config, "image")); d->resize = cfg_getbool(config, "resize"); - + return w; } // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 diff --git a/widgets/tasklist.c b/widgets/tasklist.c index bf2280740..3121b6e2b 100644 --- a/widgets/tasklist.c +++ b/widgets/tasklist.c @@ -91,7 +91,7 @@ tasklist_draw(Widget *widget, DrawCtx *ctx, int offset, int used) for(c = globalconf.clients; c; c = c->next) if(tasklist_isvisible(c, widget->statusbar->screen, d->show)) n++; - + if(!n) return (widget->area.width = 0); @@ -208,7 +208,7 @@ tasklist_button_press(Widget *widget, XButtonPressedEvent *ev) for(c = globalconf.clients; c; c = c->next) if(tasklist_isvisible(c, widget->statusbar->screen, d->show)) n++; - + if(!n) return; diff --git a/window.c b/window.c index af290b699..7c909f492 100644 --- a/window.c +++ b/window.c @@ -20,7 +20,7 @@ */ #include -#include +#include #include "structs.h" #include "window.h" @@ -115,7 +115,7 @@ window_grabbuttons(int screen, Window win) XGrabButton(globalconf.display, b->button, b->mod | globalconf.numlockmask | LockMask, win, False, BUTTONMASK, GrabModeAsync, GrabModeSync, None, None); } - + XUngrabButton(globalconf.display, AnyButton, AnyModifier, RootWindow(globalconf.display, screen)); }