sed source files to end with 1 new line
This commit is contained in:
parent
c968fd9aae
commit
0733c39e0c
@ -1607,3 +1607,4 @@ static IPCCommand ipccommands[] = {
|
||||
#endif // XRDB_PATCH
|
||||
};
|
||||
#endif // IPC_PATCH
|
||||
|
||||
|
1
drw.c
1
drw.c
@ -687,3 +687,4 @@ drw_cur_free(Drw *drw, Cur *cursor)
|
||||
XFreeCursor(drw->dpy, cursor->cursor);
|
||||
free(cursor);
|
||||
}
|
||||
|
||||
|
1
drw.h
1
drw.h
@ -100,3 +100,4 @@ void drw_arrow(Drw *drw, int x, int y, unsigned int w, unsigned int h, int direc
|
||||
|
||||
/* Map functions */
|
||||
void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h);
|
||||
|
||||
|
1
dwm.c
1
dwm.c
@ -4892,3 +4892,4 @@ main(int argc, char *argv[])
|
||||
XCloseDisplay(dpy);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -22,3 +22,4 @@ aspectresize(const Arg *arg)
|
||||
XRaiseWindow(dpy, c->win);
|
||||
resize(c, c->x, c->y, nw, nh, True);
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void aspectresize(const Arg *arg);
|
||||
|
||||
|
@ -40,3 +40,4 @@ attachx(Client *c)
|
||||
#endif
|
||||
attach(c); // master (default)
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void attachx(Client *c);
|
||||
|
||||
|
@ -81,3 +81,4 @@ runautostart(void)
|
||||
free(path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void runautostart(void);
|
||||
|
||||
|
@ -40,3 +40,4 @@ xinitvisual()
|
||||
cmap = DefaultColormap(dpy, screen);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#define OPAQUE 0xffU
|
||||
|
||||
static void xinitvisual();
|
||||
|
||||
|
@ -4,3 +4,4 @@ togglealttag()
|
||||
selmon->alttag = !selmon->alttag;
|
||||
drawbar(selmon);
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void togglealttag();
|
||||
|
||||
|
@ -91,3 +91,4 @@ wmclasscontains(Window win, const char *class, const char *name)
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -2,3 +2,4 @@ static void managealtbar(Window win, XWindowAttributes *wa);
|
||||
static void spawnbar();
|
||||
static void unmanagealtbar(Window w);
|
||||
static int wmclasscontains(Window win, const char *class, const char *name);
|
||||
|
||||
|
@ -79,3 +79,4 @@ click_awesomebar(Bar *bar, Arg *arg, BarArg *a)
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
static int width_awesomebar(Bar *bar, BarArg *a);
|
||||
static int draw_awesomebar(Bar *bar, BarArg *a);
|
||||
static int click_awesomebar(Bar *bar, Arg *arg, BarArg *a);
|
||||
|
||||
|
@ -48,3 +48,4 @@ sigstatusbar(const Arg *arg)
|
||||
sigqueue(statuspid, SIGRTMIN+statussig, sv);
|
||||
#endif // BAR_DWMBLOCKS_SIGUSR1_PATCH
|
||||
}
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
static int getstatusbarpid();
|
||||
static void sigstatusbar(const Arg *arg);
|
||||
|
||||
|
@ -50,3 +50,4 @@ updatecurrentdesktop(void)
|
||||
long data[] = { i };
|
||||
XChangeProperty(dpy, root, netatom[NetCurrentDesktop], XA_CARDINAL, 32, PropModeReplace, (unsigned char *)data, 1);
|
||||
}
|
||||
|
||||
|
@ -4,3 +4,4 @@ static void setfloatinghint(Client *c);
|
||||
static void setnumdesktops(void);
|
||||
static void setviewport(void);
|
||||
static void updatecurrentdesktop(void);
|
||||
|
||||
|
@ -67,4 +67,3 @@ click_fancybar(Bar *bar, Arg *arg, BarArg *a)
|
||||
return ClkWinTitle;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
static int width_fancybar(Bar *bar, BarArg *a);
|
||||
static int draw_fancybar(Bar *bar, BarArg *a);
|
||||
static int click_fancybar(Bar *bar, Arg *arg, BarArg *a);
|
||||
|
||||
|
@ -436,3 +436,4 @@ flextitlecalculate(
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -8,3 +8,4 @@ static int flextitlecalculate(Monitor *m, int offx, int w, int passx, void(*tabf
|
||||
static int getschemefor(Monitor *m, int group, int activegroup);
|
||||
static int getselschemefor(int scheme);
|
||||
static Client *flextitledrawarea(Monitor *m, Client *c, int x, int r, int w, int max_clients, int tabscheme, int draw_tiled, int draw_hidden, int draw_floating, int passx, void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), Arg *arg, BarArg *barg);
|
||||
|
||||
|
@ -35,3 +35,4 @@ keyrelease(XEvent *e)
|
||||
combo = 0;
|
||||
#endif // COMBO_PATCH
|
||||
}
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
static void keyrelease(XEvent *e);
|
||||
static void holdbar(const Arg *arg);
|
||||
|
||||
|
@ -108,3 +108,4 @@ drawstateindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w,
|
||||
else
|
||||
drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, tiledindicatortype);
|
||||
}
|
||||
|
||||
|
@ -18,3 +18,4 @@ enum {
|
||||
|
||||
static void drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w, int h, unsigned int tag, int filled, int invert, int type);
|
||||
static void drawstateindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w, int h, unsigned int tag, int filled, int invert);
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void layoutmenu(const Arg *arg);
|
||||
|
||||
|
@ -15,3 +15,4 @@ click_ltsymbol(Bar *bar, Arg *arg, BarArg *a)
|
||||
{
|
||||
return ClkLtSymbol;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
static int width_ltsymbol(Bar *bar, BarArg *a);
|
||||
static int draw_ltsymbol(Bar *bar, BarArg *a);
|
||||
static int click_ltsymbol(Bar *bar, Arg *arg, BarArg *a);
|
||||
|
||||
|
@ -119,3 +119,4 @@ drawpowerlinestatus(int xpos, char *stext, BarArg *barg)
|
||||
|
||||
return xpos - x;
|
||||
}
|
||||
|
||||
|
@ -9,3 +9,4 @@ static int draw_pwrl_status_es(Bar *bar, BarArg *a);
|
||||
static int click_pwrl_status(Bar *bar, Arg *arg, BarArg *a);
|
||||
static int drawpowerlinestatus(int x, char *stext, BarArg *a);
|
||||
static int widthpowerlinestatus(char *stext);
|
||||
|
||||
|
@ -104,3 +104,4 @@ click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a)
|
||||
}
|
||||
return ClkTagBar;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
static int width_pwrl_tags(Bar *bar, BarArg *a);
|
||||
static int draw_pwrl_tags(Bar *bar, BarArg *a);
|
||||
static int click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a);
|
||||
|
||||
|
@ -31,3 +31,4 @@ click_status(Bar *bar, Arg *arg, BarArg *a)
|
||||
{
|
||||
return ClkStatusText;
|
||||
}
|
||||
|
||||
|
@ -7,3 +7,4 @@ static int draw_status(Bar *bar, BarArg *a);
|
||||
static int draw_status_es(Bar *bar, BarArg *a);
|
||||
#endif // BAR_EXTRASTATUS_PATCH
|
||||
static int click_status(Bar *bar, Arg *arg, BarArg *a);
|
||||
|
||||
|
@ -265,3 +265,4 @@ status2dtextlength(char* stext)
|
||||
free(p);
|
||||
return w;
|
||||
}
|
||||
|
||||
|
@ -11,3 +11,4 @@ static int click_status2d(Bar *bar, Arg *arg, BarArg *a);
|
||||
#endif // BAR_STATUSCMD_PATCH
|
||||
static int drawstatusbar(BarArg *a, char *text);
|
||||
static int status2dtextlength(char *stext);
|
||||
|
||||
|
@ -15,3 +15,4 @@ click_stbutton(Bar *bar, Arg *arg, BarArg *a)
|
||||
{
|
||||
return ClkButton;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
static int width_stbutton(Bar *bar, BarArg *a);
|
||||
static int draw_stbutton(Bar *bar, BarArg *a);
|
||||
static int click_stbutton(Bar *bar, Arg *arg, BarArg *a);
|
||||
|
||||
|
@ -72,3 +72,4 @@ copyvalidchars(char *text, char *rawtext)
|
||||
}
|
||||
text[j] = '\0';
|
||||
}
|
||||
|
||||
|
@ -9,3 +9,4 @@ typedef struct {
|
||||
const char *cmd;
|
||||
int id;
|
||||
} StatusCmd;
|
||||
|
||||
|
@ -21,3 +21,4 @@ textw_wosc(char *s)
|
||||
|
||||
return sw;
|
||||
}
|
||||
|
||||
|
@ -195,3 +195,4 @@ wintosystrayicon(Window w)
|
||||
for (i = systray->icons; i && i->win != w; i = i->next);
|
||||
return i;
|
||||
}
|
||||
|
||||
|
@ -39,3 +39,4 @@ static void updatesystrayicongeom(Client *i, int w, int h);
|
||||
static void updatesystrayiconstate(Client *i, XPropertyEvent *ev);
|
||||
static Client *wintosystrayicon(Window w);
|
||||
|
||||
|
||||
|
@ -221,3 +221,4 @@ bartabcalculate(
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -5,3 +5,4 @@ static int click_bartabgroups(Bar *bar, Arg *arg, BarArg *a);
|
||||
static void bartabdraw(Monitor *m, Client *c, int unused, int x, int w, int groupactive, Arg *arg, BarArg *barg);
|
||||
static void bartabclick(Monitor *m, Client *c, int passx, int x, int w, int unused, Arg *arg, BarArg *barg);
|
||||
static int bartabcalculate(Monitor *m, int offx, int w, int passx, void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), Arg *arg, BarArg *barg);
|
||||
|
||||
|
@ -147,3 +147,4 @@ switchtag(const Arg *arg)
|
||||
toggleview (&new_arg);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,3 +2,4 @@ static int width_taggrid(Bar *bar, BarArg *a);
|
||||
static int draw_taggrid(Bar *bar, BarArg *a);
|
||||
static int click_taggrid(Bar *bar, Arg *arg, BarArg *a);
|
||||
static void switchtag(const Arg *arg);
|
||||
|
||||
|
@ -18,3 +18,4 @@ tagicon(Monitor *m, int tag)
|
||||
#endif // BAR_ALTERNATIVE_TAGS_PATCH
|
||||
return tagicons[DEFAULT_TAGS][tagindex];
|
||||
}
|
||||
|
||||
|
@ -5,3 +5,4 @@ enum {
|
||||
};
|
||||
|
||||
static char * tagicon(Monitor *m, int tag);
|
||||
|
||||
|
@ -86,3 +86,4 @@ click_tags(Bar *bar, Arg *arg, BarArg *a)
|
||||
}
|
||||
return ClkTagBar;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
static int width_tags(Bar *bar, BarArg *a);
|
||||
static int draw_tags(Bar *bar, BarArg *a);
|
||||
static int click_tags(Bar *bar, Arg *arg, BarArg *a);
|
||||
|
||||
|
@ -66,3 +66,4 @@ int get_luminance(char *r)
|
||||
|
||||
return (0.299 * n[0] + 0.587 * n[1] + 0.114 * n[2]) / 2.55;
|
||||
}
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
static void get_vt_colors(void);
|
||||
static int get_luminance(char *rgb);
|
||||
|
||||
|
@ -48,4 +48,3 @@ click_wintitle(Bar *bar, Arg *arg, BarArg *a)
|
||||
return ClkWinTitle;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
static int width_wintitle(Bar *bar, BarArg *a);
|
||||
static int draw_wintitle(Bar *bar, BarArg *a);
|
||||
static int click_wintitle(Bar *bar, Arg *arg, BarArg *a);
|
||||
|
||||
|
@ -43,3 +43,4 @@ calc_wintitle_floating(
|
||||
c = flextitledrawarea(m, m->clients, offx, r, w, clientsnfloating, SCHEMEFOR(GRP_FLOAT), 0, 0, 1, passx, tabfn, arg, barg);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -6,3 +6,4 @@ static int calc_wintitle_floating(
|
||||
void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg),
|
||||
Arg *arg, BarArg *barg
|
||||
);
|
||||
|
||||
|
@ -43,3 +43,4 @@ calc_wintitle_hidden(
|
||||
c = flextitledrawarea(m, m->clients, offx, r, w, clientsnhidden, SCHEMEFOR(GRP_HIDDEN), 0, 1, 0, passx, tabfn, arg, barg);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -6,3 +6,4 @@ static int calc_wintitle_hidden(
|
||||
void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg),
|
||||
Arg *arg, BarArg *barg
|
||||
);
|
||||
|
||||
|
@ -91,3 +91,4 @@ showhideclient(const Arg *arg)
|
||||
hide(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3,3 +3,4 @@ static void show(Client *c);
|
||||
static void togglewin(const Arg *arg);
|
||||
static Client * prevtiled(Client *c);
|
||||
static void showhideclient(const Arg *arg);
|
||||
|
||||
|
@ -21,3 +21,4 @@ setcfact(const Arg *arg)
|
||||
c->cfact = f;
|
||||
arrange(selmon);
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void setcfact(const Arg *arg);
|
||||
|
||||
|
@ -3,3 +3,4 @@ help(void)
|
||||
{
|
||||
return "usage: dwm [-hv] [-fn font] [-nb color] [-nf color] [-sb color] [-sf color]\n[-df font] [-dnf color] [-dnb color] [-dsf color] [-dsb color]\n";
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static char* help();
|
||||
|
||||
|
@ -47,3 +47,4 @@ comboview(const Arg *arg)
|
||||
focus(NULL);
|
||||
arrange(selmon);
|
||||
}
|
||||
|
||||
|
@ -3,3 +3,4 @@ static void keyrelease(XEvent *e);
|
||||
#endif // !BAR_HOLDBAR_PATCH
|
||||
static void combotag(const Arg *arg);
|
||||
static void comboview(const Arg *arg);
|
||||
|
||||
|
@ -26,3 +26,4 @@ autostart_exec()
|
||||
while (*++p);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void autostart_exec(void);
|
||||
|
||||
|
@ -15,3 +15,4 @@ cyclelayout(const Arg *arg)
|
||||
setlayout(&((Arg) { .v = &layouts[LENGTH(layouts) - 2] }));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void cyclelayout(const Arg *arg);
|
||||
|
||||
|
@ -36,3 +36,4 @@ updatemotifhints(Client *c)
|
||||
XFree(p);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -6,3 +6,4 @@
|
||||
#define MWM_DECOR_TITLE (1 << 3)
|
||||
|
||||
static void updatemotifhints(Client *c);
|
||||
|
||||
|
@ -14,3 +14,4 @@ distributetags(const Arg *arg)
|
||||
focus(NULL);
|
||||
arrange(selmon);
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void distributetags(const Arg *arg);
|
||||
|
||||
|
@ -80,3 +80,4 @@ dragcfact(const Arg *arg)
|
||||
XUngrabPointer(dpy, CurrentTime);
|
||||
while (XCheckMaskEvent(dpy, EnterWindowMask, &ev));
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void dragcfact(const Arg *arg);
|
||||
|
||||
|
@ -229,3 +229,4 @@ dragmfact(const Arg *arg)
|
||||
XUngrabPointer(dpy, CurrentTime);
|
||||
while (XCheckMaskEvent(dpy, EnterWindowMask, &ev));
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void dragmfact(const Arg *arg);
|
||||
|
||||
|
@ -127,3 +127,4 @@ case $# in
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -98,3 +98,4 @@ fake_signal(void)
|
||||
// No fake signal was sent, so proceed with update
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -11,3 +11,4 @@ static void tagex(const Arg *arg);
|
||||
static void toggletagex(const Arg *arg);
|
||||
static void tagallex(const Arg *arg);
|
||||
static int fake_signal(void);
|
||||
|
||||
|
@ -193,3 +193,4 @@ togglehorizontalexpand(const Arg *arg)
|
||||
else if (arg->i > 0) expand(EXPAND_RIGHT);
|
||||
else expand(EXPAND_LEFT | EXPAND_RIGHT);
|
||||
}
|
||||
|
||||
|
@ -6,3 +6,4 @@ void toggleverticalexpand(const Arg *arg);
|
||||
void togglehorizontalexpand(const Arg *arg);
|
||||
void exresize(const Arg *arg);
|
||||
void explace(const Arg *arg);
|
||||
|
||||
|
@ -16,3 +16,4 @@ togglefakefullscreen(const Arg *arg)
|
||||
setfullscreen(c, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void togglefakefullscreen(const Arg *arg);
|
||||
|
||||
|
@ -192,3 +192,4 @@ getfloatpos(int pos, char pCh, int size, char sCh, int min_p, int max_s, int cp,
|
||||
*out_p = cp;
|
||||
*out_s = MAX(cs - 2*cbw, 1);
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
static void floatpos(const Arg *arg);
|
||||
static void setfloatpos(Client *c, const char *floatpos);
|
||||
static void getfloatpos(int pos, char pCh, int size, char sCh, int min_p, int max_s, int cp, int cs, int cbw, int defgrid, int *out_p, int *out_s);
|
||||
|
||||
|
@ -99,3 +99,4 @@ tagandviewtoright(const Arg *arg)
|
||||
#endif // BAR_EWMHTAGS_PATCH
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,3 +4,4 @@ static void viewtoleft(const Arg *arg);
|
||||
static void viewtoright(const Arg *arg);
|
||||
static void tagandviewtoleft(const Arg *arg);
|
||||
static void tagandviewtoright(const Arg *arg);
|
||||
|
||||
|
@ -63,3 +63,4 @@ focusdir(const Arg *arg)
|
||||
restack(f->mon);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void focusdir(const Arg *arg);
|
||||
|
||||
|
@ -11,3 +11,4 @@ focusmaster(const Arg *arg)
|
||||
if (c)
|
||||
focus(c);
|
||||
}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
static void focusmaster(const Arg *arg);
|
||||
|
||||
|
@ -13,3 +13,4 @@ focusurgent(const Arg *arg)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user