mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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:
parent
070ec6dbcd
commit
4ff0dae17e
16 changed files with 32 additions and 32 deletions
|
@ -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 <widget-id> 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
|
||||
|
|
10
awesome.c
10
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);
|
||||
}
|
||||
|
|
6
client.c
6
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;
|
||||
|
|
8
client.h
8
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;
|
||||
|
|
|
@ -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
|
||||
|
|
2
config.c
2
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))
|
||||
|
|
8
ewmh.c
8
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);
|
||||
}
|
||||
|
||||
|
|
2
focus.c
2
focus.c
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
|
||||
#include "tag.h"
|
||||
#include "focus.h"
|
||||
#include "focus.h"
|
||||
#include "client.h"
|
||||
|
||||
extern AwesomeConf globalconf;
|
||||
|
|
2
rules.c
2
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,
|
||||
|
|
2
rules.h
2
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 *);
|
||||
|
|
|
@ -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;
|
||||
|
|
2
widget.c
2
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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
4
window.c
4
window.c
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/extensions/shape.h>
|
||||
#include <X11/extensions/shape.h>
|
||||
|
||||
#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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue