trailing whitespaces removed

like:
find . -iname "*.txt" -o -iname "*.c" -o -iname "*.h" | xargs sed -i 's/\s\+$//'

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
marco candrian 2008-02-13 06:53:08 +01:00 committed by Julien Danjou
parent 070ec6dbcd
commit 4ff0dae17e
16 changed files with 32 additions and 32 deletions

View File

@ -31,11 +31,11 @@ The command format is:
For example, to change statusbar text on screen 0, you can do the following: For example, to change statusbar text on screen 0, you can do the following:
echo 0 widget_tell <widget-id> Hello, world | awesome-client echo 0 widget_tell <widget-id> Hello, world | awesome-client
To view tag number 3 on screen 1: To view tag number 3 on screen 1:
echo 1 tag_view 3 | awesome-client echo 1 tag_view 3 | awesome-client
To zoom focused window on screen 0: To zoom focused window on screen 0:
echo 0 client_zoom | awesome-client echo 0 client_zoom | awesome-client

View File

@ -374,7 +374,7 @@ main(int argc, char *argv[])
/* refresh everything before waiting events */ /* refresh everything before waiting events */
statusbar_refresh(); statusbar_refresh();
layout_refresh(); layout_refresh();
/* main event loop, also reads status text from socket */ /* main event loop, also reads status text from socket */
while(running) while(running)
{ {
@ -419,7 +419,7 @@ main(int argc, char *argv[])
XNextEvent(dpy, &ev); XNextEvent(dpy, &ev);
if(handler[ev.type]) if(handler[ev.type])
handler[ev.type](&ev); handler[ev.type](&ev);
/* drop events requested to */ /* drop events requested to */
if(globalconf.drop_events) if(globalconf.drop_events)
{ {
@ -428,14 +428,14 @@ main(int argc, char *argv[])
while(XCheckMaskEvent(dpy, globalconf.drop_events, &ev)); while(XCheckMaskEvent(dpy, globalconf.drop_events, &ev));
globalconf.drop_events = NoEventMask; globalconf.drop_events = NoEventMask;
} }
/* need to resync */ /* need to resync */
XSync(dpy, False); XSync(dpy, False);
} }
statusbar_refresh(); statusbar_refresh();
layout_refresh(); layout_refresh();
/* need to resync */ /* need to resync */
XSync(dpy, False); XSync(dpy, False);
} }

View File

@ -401,7 +401,7 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
if(!(flags & (USPosition | PPosition))) if(!(flags & (USPosition | PPosition)))
c->f_geometry = client_get_smart_geometry(c->f_geometry, c->border, c->screen); c->f_geometry = client_get_smart_geometry(c->f_geometry, c->border, c->screen);
XSelectInput(globalconf.display, w, StructureNotifyMask | PropertyChangeMask | EnterWindowMask); XSelectInput(globalconf.display, w, StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
/* handle xshape */ /* handle xshape */
@ -437,7 +437,7 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
/* some windows require this */ /* some windows require this */
XMoveResizeWindow(globalconf.display, c->win, c->geometry.x, c->geometry.y, XMoveResizeWindow(globalconf.display, c->win, c->geometry.x, c->geometry.y,
c->geometry.width, c->geometry.height); c->geometry.width, c->geometry.height);
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
ewmh_update_net_client_list(phys_screen); ewmh_update_net_client_list(phys_screen);
} }
@ -942,7 +942,7 @@ uicb_client_kill(int screen __attribute__ ((unused)), char *arg __attribute__ ((
static void static void
client_maximize(Client *c, Area geometry) client_maximize(Client *c, Area geometry)
{ {
if((c->ismax = !c->ismax)) if((c->ismax = !c->ismax))
{ {
c->wasfloating = c->isfloating; c->wasfloating = c->isfloating;

View File

@ -36,7 +36,7 @@ void client_unmanage(Client *);
void client_updatewmhints(Client *); void client_updatewmhints(Client *);
long client_updatesizehints(Client *); long client_updatesizehints(Client *);
void client_updatetitle(Client *); void client_updatetitle(Client *);
void client_saveprops(Client *); void client_saveprops(Client *);
void client_kill(Client *); void client_kill(Client *);
void client_setfloating(Client *, Bool); void client_setfloating(Client *, Bool);
@ -45,9 +45,9 @@ Uicb uicb_client_moveresize;
Uicb uicb_client_settrans; Uicb uicb_client_settrans;
Uicb uicb_client_swapnext; Uicb uicb_client_swapnext;
Uicb uicb_client_swapprev; Uicb uicb_client_swapprev;
Uicb uicb_client_togglemax; Uicb uicb_client_togglemax;
Uicb uicb_client_toggleverticalmax; Uicb uicb_client_toggleverticalmax;
Uicb uicb_client_togglehorizontalmax; Uicb uicb_client_togglehorizontalmax;
Uicb uicb_client_zoom; Uicb uicb_client_zoom;
Uicb uicb_client_focusnext; Uicb uicb_client_focusnext;
Uicb uicb_client_focusprev; Uicb uicb_client_focusprev;

View File

@ -133,6 +133,6 @@
*list = item->next; \ *list = item->next; \
item->next = NULL; \ item->next = NULL; \
} \ } \
#endif #endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

View File

@ -113,7 +113,7 @@ mouse_button_lookup(const char *button)
{NULL, 0} {NULL, 0}
}; };
int i; int i;
if(button) if(button)
for(i = 0; MouseButtonList[i].name; i++) for(i = 0; MouseButtonList[i].name; i++)
if(!a_strcmp(button, MouseButtonList[i].name)) if(!a_strcmp(button, MouseButtonList[i].name))

8
ewmh.c
View File

@ -88,7 +88,7 @@ static AtomItem AtomNames[] =
{ "UTF8_STRING", &utf8_string }, { "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_REMOVE 0
#define _NET_WM_STATE_ADD 1 #define _NET_WM_STATE_ADD 1
@ -100,7 +100,7 @@ ewmh_init_atoms(void)
unsigned int i; unsigned int i;
char *names[ATOM_NUMBER]; char *names[ATOM_NUMBER];
Atom atoms[ATOM_NUMBER]; Atom atoms[ATOM_NUMBER];
for(i = 0; i < ATOM_NUMBER; i++) for(i = 0; i < ATOM_NUMBER; i++)
names[i] = (char *) AtomNames[i].name; names[i] = (char *) AtomNames[i].name;
XInternAtoms(globalconf.display, names, ATOM_NUMBER, False, atoms); 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_active_window;
atom[i++] = net_close_window; atom[i++] = net_close_window;
atom[i++] = net_wm_name; atom[i++] = net_wm_name;
atom[i++] = net_wm_icon_name; atom[i++] = net_wm_icon_name;
atom[i++] = net_wm_window_type; 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), XChangeProperty(globalconf.display, RootWindow(globalconf.display, phys_screen),
net_current_desktop, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &count, 1); net_current_desktop, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &count, 1);
p_delete(&curtags); p_delete(&curtags);
} }

View File

@ -20,7 +20,7 @@
*/ */
#include "tag.h" #include "tag.h"
#include "focus.h" #include "focus.h"
#include "client.h" #include "client.h"
extern AwesomeConf globalconf; extern AwesomeConf globalconf;

View File

@ -74,7 +74,7 @@ client_match_rule(Client *c, Rule *r)
if(ret) if(ret)
return True; return True;
} }
if(r->xprop if(r->xprop
&& r->xpropval_r && r->xpropval_r
&& xgettextprop(c->win, && xgettextprop(c->win,

View File

@ -26,7 +26,7 @@
#define RULE_NOSCREEN -1 #define RULE_NOSCREEN -1
regex_t * rules_compile_regex(char *); regex_t * rules_compile_regex(char *);
Bool tag_match_rule(Tag *, Rule *); Bool tag_match_rule(Tag *, Rule *);
Fuzzy rules_get_fuzzy_from_str(const char *); Fuzzy rules_get_fuzzy_from_str(const char *);
Rule * rule_matching_client(Client *); Rule * rule_matching_client(Client *);

View File

@ -188,7 +188,7 @@ statusbar_init(Statusbar *statusbar)
globalconf.screens[statusbar->screen].statusbar, globalconf.screens[statusbar->screen].statusbar,
&globalconf.screens[statusbar->screen].padding); &globalconf.screens[statusbar->screen].padding);
/* Top and Bottom Statusbar have prio */ /* Top and Bottom Statusbar have prio */
for(sb = globalconf.screens[statusbar->screen].statusbar; sb; sb = sb->next) for(sb = globalconf.screens[statusbar->screen].statusbar; sb; sb = sb->next)
switch(sb->position) switch(sb->position)
@ -253,7 +253,7 @@ statusbar_refresh()
Position Position
statusbar_get_position_from_str(const char *pos) statusbar_get_position_from_str(const char *pos)
{ {
if(!a_strncmp(pos, "off", 3)) if(!a_strncmp(pos, "off", 3))
return Off; return Off;
else if(!a_strncmp(pos, "bottom", 6)) else if(!a_strncmp(pos, "bottom", 6))
return Bottom; return Bottom;

View File

@ -63,7 +63,7 @@ widget_find(char *name, int screen)
{ {
Widget *widget; Widget *widget;
Statusbar *sb; Statusbar *sb;
for(sb = globalconf.screens[screen].statusbar; sb; sb = sb->next) for(sb = globalconf.screens[screen].statusbar; sb; sb = sb->next)
for(widget = sb->widgets; widget; widget = widget->next) for(widget = sb->widgets; widget; widget = widget->next)
if(a_strcmp(name, widget->name) == 0) if(a_strcmp(name, widget->name) == 0)

View File

@ -101,7 +101,7 @@ focusicon_new(Statusbar *statusbar, cfg_t *config)
widget_common_new(w, statusbar, config); widget_common_new(w, statusbar, config);
w->draw = focusicon_draw; w->draw = focusicon_draw;
w->alignment = draw_get_align(cfg_getstr(config, "align")); w->alignment = draw_get_align(cfg_getstr(config, "align"));
/* Set cache property */ /* Set cache property */
w->cache.flags = WIDGET_CACHE_CLIENTS; w->cache.flags = WIDGET_CACHE_CLIENTS;

View File

@ -87,7 +87,7 @@ iconbox_new(Statusbar *statusbar, cfg_t *config)
w->data = d = p_new(Data, 1); w->data = d = p_new(Data, 1);
d->image = a_strdup(cfg_getstr(config, "image")); d->image = a_strdup(cfg_getstr(config, "image"));
d->resize = cfg_getbool(config, "resize"); d->resize = cfg_getbool(config, "resize");
return w; return w;
} }
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80 // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

View File

@ -91,7 +91,7 @@ tasklist_draw(Widget *widget, DrawCtx *ctx, int offset, int used)
for(c = globalconf.clients; c; c = c->next) for(c = globalconf.clients; c; c = c->next)
if(tasklist_isvisible(c, widget->statusbar->screen, d->show)) if(tasklist_isvisible(c, widget->statusbar->screen, d->show))
n++; n++;
if(!n) if(!n)
return (widget->area.width = 0); return (widget->area.width = 0);
@ -208,7 +208,7 @@ tasklist_button_press(Widget *widget, XButtonPressedEvent *ev)
for(c = globalconf.clients; c; c = c->next) for(c = globalconf.clients; c; c = c->next)
if(tasklist_isvisible(c, widget->statusbar->screen, d->show)) if(tasklist_isvisible(c, widget->statusbar->screen, d->show))
n++; n++;
if(!n) if(!n)
return; return;

View File

@ -20,7 +20,7 @@
*/ */
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/extensions/shape.h> #include <X11/extensions/shape.h>
#include "structs.h" #include "structs.h"
#include "window.h" #include "window.h"
@ -115,7 +115,7 @@ window_grabbuttons(int screen, Window win)
XGrabButton(globalconf.display, b->button, b->mod | globalconf.numlockmask | LockMask, XGrabButton(globalconf.display, b->button, b->mod | globalconf.numlockmask | LockMask,
win, False, BUTTONMASK, GrabModeAsync, GrabModeSync, None, None); win, False, BUTTONMASK, GrabModeAsync, GrabModeSync, None, None);
} }
XUngrabButton(globalconf.display, AnyButton, AnyModifier, RootWindow(globalconf.display, screen)); XUngrabButton(globalconf.display, AnyButton, AnyModifier, RootWindow(globalconf.display, screen));
} }