sed source files to end with 1 new line

This commit is contained in:
pepper-jelly 2021-06-14 08:16:17 +03:00
parent c968fd9aae
commit 0733c39e0c
249 changed files with 432 additions and 187 deletions

View File

@ -1607,3 +1607,4 @@ static IPCCommand ipccommands[] = {
#endif // XRDB_PATCH #endif // XRDB_PATCH
}; };
#endif // IPC_PATCH #endif // IPC_PATCH

1
drw.c
View File

@ -687,3 +687,4 @@ drw_cur_free(Drw *drw, Cur *cursor)
XFreeCursor(drw->dpy, cursor->cursor); XFreeCursor(drw->dpy, cursor->cursor);
free(cursor); free(cursor);
} }

1
drw.h
View File

@ -100,3 +100,4 @@ void drw_arrow(Drw *drw, int x, int y, unsigned int w, unsigned int h, int direc
/* Map functions */ /* Map functions */
void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h); void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h);

1
dwm.c
View File

@ -4892,3 +4892,4 @@ main(int argc, char *argv[])
XCloseDisplay(dpy); XCloseDisplay(dpy);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

View File

@ -22,3 +22,4 @@ aspectresize(const Arg *arg)
XRaiseWindow(dpy, c->win); XRaiseWindow(dpy, c->win);
resize(c, c->x, c->y, nw, nh, True); resize(c, c->x, c->y, nw, nh, True);
} }

View File

@ -1 +1,2 @@
static void aspectresize(const Arg *arg); static void aspectresize(const Arg *arg);

View File

@ -40,3 +40,4 @@ attachx(Client *c)
#endif #endif
attach(c); // master (default) attach(c); // master (default)
} }

View File

@ -1 +1,2 @@
static void attachx(Client *c); static void attachx(Client *c);

View File

@ -81,3 +81,4 @@ runautostart(void)
free(path); free(path);
} }
} }

View File

@ -1 +1,2 @@
static void runautostart(void); static void runautostart(void);

View File

@ -40,3 +40,4 @@ xinitvisual()
cmap = DefaultColormap(dpy, screen); cmap = DefaultColormap(dpy, screen);
} }
} }

View File

@ -1,3 +1,4 @@
#define OPAQUE 0xffU #define OPAQUE 0xffU
static void xinitvisual(); static void xinitvisual();

View File

@ -4,3 +4,4 @@ togglealttag()
selmon->alttag = !selmon->alttag; selmon->alttag = !selmon->alttag;
drawbar(selmon); drawbar(selmon);
} }

View File

@ -1 +1,2 @@
static void togglealttag(); static void togglealttag();

View File

@ -91,3 +91,4 @@ wmclasscontains(Window win, const char *class, const char *name)
return res; return res;
} }

View File

@ -2,3 +2,4 @@ static void managealtbar(Window win, XWindowAttributes *wa);
static void spawnbar(); static void spawnbar();
static void unmanagealtbar(Window w); static void unmanagealtbar(Window w);
static int wmclasscontains(Window win, const char *class, const char *name); static int wmclasscontains(Window win, const char *class, const char *name);

View File

@ -79,3 +79,4 @@ click_awesomebar(Bar *bar, Arg *arg, BarArg *a)
} }
return -1; return -1;
} }

View File

@ -1,3 +1,4 @@
static int width_awesomebar(Bar *bar, BarArg *a); static int width_awesomebar(Bar *bar, BarArg *a);
static int draw_awesomebar(Bar *bar, BarArg *a); static int draw_awesomebar(Bar *bar, BarArg *a);
static int click_awesomebar(Bar *bar, Arg *arg, BarArg *a); static int click_awesomebar(Bar *bar, Arg *arg, BarArg *a);

View File

@ -48,3 +48,4 @@ sigstatusbar(const Arg *arg)
sigqueue(statuspid, SIGRTMIN+statussig, sv); sigqueue(statuspid, SIGRTMIN+statussig, sv);
#endif // BAR_DWMBLOCKS_SIGUSR1_PATCH #endif // BAR_DWMBLOCKS_SIGUSR1_PATCH
} }

View File

@ -1,2 +1,3 @@
static int getstatusbarpid(); static int getstatusbarpid();
static void sigstatusbar(const Arg *arg); static void sigstatusbar(const Arg *arg);

View File

@ -50,3 +50,4 @@ updatecurrentdesktop(void)
long data[] = { i }; long data[] = { i };
XChangeProperty(dpy, root, netatom[NetCurrentDesktop], XA_CARDINAL, 32, PropModeReplace, (unsigned char *)data, 1); XChangeProperty(dpy, root, netatom[NetCurrentDesktop], XA_CARDINAL, 32, PropModeReplace, (unsigned char *)data, 1);
} }

View File

@ -4,3 +4,4 @@ static void setfloatinghint(Client *c);
static void setnumdesktops(void); static void setnumdesktops(void);
static void setviewport(void); static void setviewport(void);
static void updatecurrentdesktop(void); static void updatecurrentdesktop(void);

View File

@ -67,4 +67,3 @@ click_fancybar(Bar *bar, Arg *arg, BarArg *a)
return ClkWinTitle; return ClkWinTitle;
} }

View File

@ -1,3 +1,4 @@
static int width_fancybar(Bar *bar, BarArg *a); static int width_fancybar(Bar *bar, BarArg *a);
static int draw_fancybar(Bar *bar, BarArg *a); static int draw_fancybar(Bar *bar, BarArg *a);
static int click_fancybar(Bar *bar, Arg *arg, BarArg *a); static int click_fancybar(Bar *bar, Arg *arg, BarArg *a);

View File

@ -436,3 +436,4 @@ flextitlecalculate(
} }
return 1; return 1;
} }

View File

@ -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 getschemefor(Monitor *m, int group, int activegroup);
static int getselschemefor(int scheme); 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); 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);

View File

@ -35,3 +35,4 @@ keyrelease(XEvent *e)
combo = 0; combo = 0;
#endif // COMBO_PATCH #endif // COMBO_PATCH
} }

View File

@ -1,2 +1,3 @@
static void keyrelease(XEvent *e); static void keyrelease(XEvent *e);
static void holdbar(const Arg *arg); static void holdbar(const Arg *arg);

View File

@ -108,3 +108,4 @@ drawstateindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w,
else else
drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, tiledindicatortype); drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, tiledindicatortype);
} }

View File

@ -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 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); 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);

View File

@ -1 +1,2 @@
static void layoutmenu(const Arg *arg); static void layoutmenu(const Arg *arg);

View File

@ -15,3 +15,4 @@ click_ltsymbol(Bar *bar, Arg *arg, BarArg *a)
{ {
return ClkLtSymbol; return ClkLtSymbol;
} }

View File

@ -1,3 +1,4 @@
static int width_ltsymbol(Bar *bar, BarArg *a); static int width_ltsymbol(Bar *bar, BarArg *a);
static int draw_ltsymbol(Bar *bar, BarArg *a); static int draw_ltsymbol(Bar *bar, BarArg *a);
static int click_ltsymbol(Bar *bar, Arg *arg, BarArg *a); static int click_ltsymbol(Bar *bar, Arg *arg, BarArg *a);

View File

@ -119,3 +119,4 @@ drawpowerlinestatus(int xpos, char *stext, BarArg *barg)
return xpos - x; return xpos - x;
} }

View File

@ -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 click_pwrl_status(Bar *bar, Arg *arg, BarArg *a);
static int drawpowerlinestatus(int x, char *stext, BarArg *a); static int drawpowerlinestatus(int x, char *stext, BarArg *a);
static int widthpowerlinestatus(char *stext); static int widthpowerlinestatus(char *stext);

View File

@ -104,3 +104,4 @@ click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a)
} }
return ClkTagBar; return ClkTagBar;
} }

View File

@ -1,3 +1,4 @@
static int width_pwrl_tags(Bar *bar, BarArg *a); static int width_pwrl_tags(Bar *bar, BarArg *a);
static int draw_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); static int click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a);

View File

@ -31,3 +31,4 @@ click_status(Bar *bar, Arg *arg, BarArg *a)
{ {
return ClkStatusText; return ClkStatusText;
} }

View File

@ -7,3 +7,4 @@ static int draw_status(Bar *bar, BarArg *a);
static int draw_status_es(Bar *bar, BarArg *a); static int draw_status_es(Bar *bar, BarArg *a);
#endif // BAR_EXTRASTATUS_PATCH #endif // BAR_EXTRASTATUS_PATCH
static int click_status(Bar *bar, Arg *arg, BarArg *a); static int click_status(Bar *bar, Arg *arg, BarArg *a);

View File

@ -265,3 +265,4 @@ status2dtextlength(char* stext)
free(p); free(p);
return w; return w;
} }

View File

@ -11,3 +11,4 @@ static int click_status2d(Bar *bar, Arg *arg, BarArg *a);
#endif // BAR_STATUSCMD_PATCH #endif // BAR_STATUSCMD_PATCH
static int drawstatusbar(BarArg *a, char *text); static int drawstatusbar(BarArg *a, char *text);
static int status2dtextlength(char *stext); static int status2dtextlength(char *stext);

View File

@ -15,3 +15,4 @@ click_stbutton(Bar *bar, Arg *arg, BarArg *a)
{ {
return ClkButton; return ClkButton;
} }

View File

@ -1,3 +1,4 @@
static int width_stbutton(Bar *bar, BarArg *a); static int width_stbutton(Bar *bar, BarArg *a);
static int draw_stbutton(Bar *bar, BarArg *a); static int draw_stbutton(Bar *bar, BarArg *a);
static int click_stbutton(Bar *bar, Arg *arg, BarArg *a); static int click_stbutton(Bar *bar, Arg *arg, BarArg *a);

View File

@ -72,3 +72,4 @@ copyvalidchars(char *text, char *rawtext)
} }
text[j] = '\0'; text[j] = '\0';
} }

View File

@ -9,3 +9,4 @@ typedef struct {
const char *cmd; const char *cmd;
int id; int id;
} StatusCmd; } StatusCmd;

View File

@ -21,3 +21,4 @@ textw_wosc(char *s)
return sw; return sw;
} }

View File

@ -195,3 +195,4 @@ wintosystrayicon(Window w)
for (i = systray->icons; i && i->win != w; i = i->next); for (i = systray->icons; i && i->win != w; i = i->next);
return i; return i;
} }

View File

@ -39,3 +39,4 @@ static void updatesystrayicongeom(Client *i, int w, int h);
static void updatesystrayiconstate(Client *i, XPropertyEvent *ev); static void updatesystrayiconstate(Client *i, XPropertyEvent *ev);
static Client *wintosystrayicon(Window w); static Client *wintosystrayicon(Window w);

View File

@ -221,3 +221,4 @@ bartabcalculate(
} }
return 1; return 1;
} }

View File

@ -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 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 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); 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);

View File

@ -147,3 +147,4 @@ switchtag(const Arg *arg)
toggleview (&new_arg); toggleview (&new_arg);
} }
} }

View File

@ -2,3 +2,4 @@ static int width_taggrid(Bar *bar, BarArg *a);
static int draw_taggrid(Bar *bar, BarArg *a); static int draw_taggrid(Bar *bar, BarArg *a);
static int click_taggrid(Bar *bar, Arg *arg, BarArg *a); static int click_taggrid(Bar *bar, Arg *arg, BarArg *a);
static void switchtag(const Arg *arg); static void switchtag(const Arg *arg);

View File

@ -18,3 +18,4 @@ tagicon(Monitor *m, int tag)
#endif // BAR_ALTERNATIVE_TAGS_PATCH #endif // BAR_ALTERNATIVE_TAGS_PATCH
return tagicons[DEFAULT_TAGS][tagindex]; return tagicons[DEFAULT_TAGS][tagindex];
} }

View File

@ -5,3 +5,4 @@ enum {
}; };
static char * tagicon(Monitor *m, int tag); static char * tagicon(Monitor *m, int tag);

View File

@ -86,3 +86,4 @@ click_tags(Bar *bar, Arg *arg, BarArg *a)
} }
return ClkTagBar; return ClkTagBar;
} }

View File

@ -1,3 +1,4 @@
static int width_tags(Bar *bar, BarArg *a); static int width_tags(Bar *bar, BarArg *a);
static int draw_tags(Bar *bar, BarArg *a); static int draw_tags(Bar *bar, BarArg *a);
static int click_tags(Bar *bar, Arg *arg, BarArg *a); static int click_tags(Bar *bar, Arg *arg, BarArg *a);

View File

@ -66,3 +66,4 @@ int get_luminance(char *r)
return (0.299 * n[0] + 0.587 * n[1] + 0.114 * n[2]) / 2.55; return (0.299 * n[0] + 0.587 * n[1] + 0.114 * n[2]) / 2.55;
} }

View File

@ -1,2 +1,3 @@
static void get_vt_colors(void); static void get_vt_colors(void);
static int get_luminance(char *rgb); static int get_luminance(char *rgb);

View File

@ -48,4 +48,3 @@ click_wintitle(Bar *bar, Arg *arg, BarArg *a)
return ClkWinTitle; return ClkWinTitle;
} }

View File

@ -1,3 +1,4 @@
static int width_wintitle(Bar *bar, BarArg *a); static int width_wintitle(Bar *bar, BarArg *a);
static int draw_wintitle(Bar *bar, BarArg *a); static int draw_wintitle(Bar *bar, BarArg *a);
static int click_wintitle(Bar *bar, Arg *arg, BarArg *a); static int click_wintitle(Bar *bar, Arg *arg, BarArg *a);

View File

@ -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); c = flextitledrawarea(m, m->clients, offx, r, w, clientsnfloating, SCHEMEFOR(GRP_FLOAT), 0, 0, 1, passx, tabfn, arg, barg);
return 1; return 1;
} }

View File

@ -6,3 +6,4 @@ static int calc_wintitle_floating(
void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg),
Arg *arg, BarArg *barg Arg *arg, BarArg *barg
); );

View File

@ -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); c = flextitledrawarea(m, m->clients, offx, r, w, clientsnhidden, SCHEMEFOR(GRP_HIDDEN), 0, 1, 0, passx, tabfn, arg, barg);
return 1; return 1;
} }

View File

@ -6,3 +6,4 @@ static int calc_wintitle_hidden(
void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg),
Arg *arg, BarArg *barg Arg *arg, BarArg *barg
); );

View File

@ -91,3 +91,4 @@ showhideclient(const Arg *arg)
hide(c); hide(c);
} }
} }

View File

@ -3,3 +3,4 @@ static void show(Client *c);
static void togglewin(const Arg *arg); static void togglewin(const Arg *arg);
static Client * prevtiled(Client *c); static Client * prevtiled(Client *c);
static void showhideclient(const Arg *arg); static void showhideclient(const Arg *arg);

View File

@ -21,3 +21,4 @@ setcfact(const Arg *arg)
c->cfact = f; c->cfact = f;
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void setcfact(const Arg *arg); static void setcfact(const Arg *arg);

View File

@ -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"; 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";
} }

View File

@ -1 +1,2 @@
static char* help(); static char* help();

View File

@ -47,3 +47,4 @@ comboview(const Arg *arg)
focus(NULL); focus(NULL);
arrange(selmon); arrange(selmon);
} }

View File

@ -3,3 +3,4 @@ static void keyrelease(XEvent *e);
#endif // !BAR_HOLDBAR_PATCH #endif // !BAR_HOLDBAR_PATCH
static void combotag(const Arg *arg); static void combotag(const Arg *arg);
static void comboview(const Arg *arg); static void comboview(const Arg *arg);

View File

@ -26,3 +26,4 @@ autostart_exec()
while (*++p); while (*++p);
} }
} }

View File

@ -1 +1,2 @@
static void autostart_exec(void); static void autostart_exec(void);

View File

@ -15,3 +15,4 @@ cyclelayout(const Arg *arg)
setlayout(&((Arg) { .v = &layouts[LENGTH(layouts) - 2] })); setlayout(&((Arg) { .v = &layouts[LENGTH(layouts) - 2] }));
} }
} }

View File

@ -1 +1,2 @@
static void cyclelayout(const Arg *arg); static void cyclelayout(const Arg *arg);

View File

@ -36,3 +36,4 @@ updatemotifhints(Client *c)
XFree(p); XFree(p);
} }
} }

View File

@ -6,3 +6,4 @@
#define MWM_DECOR_TITLE (1 << 3) #define MWM_DECOR_TITLE (1 << 3)
static void updatemotifhints(Client *c); static void updatemotifhints(Client *c);

View File

@ -14,3 +14,4 @@ distributetags(const Arg *arg)
focus(NULL); focus(NULL);
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void distributetags(const Arg *arg); static void distributetags(const Arg *arg);

View File

@ -80,3 +80,4 @@ dragcfact(const Arg *arg)
XUngrabPointer(dpy, CurrentTime); XUngrabPointer(dpy, CurrentTime);
while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); while (XCheckMaskEvent(dpy, EnterWindowMask, &ev));
} }

View File

@ -1 +1,2 @@
static void dragcfact(const Arg *arg); static void dragcfact(const Arg *arg);

View File

@ -229,3 +229,4 @@ dragmfact(const Arg *arg)
XUngrabPointer(dpy, CurrentTime); XUngrabPointer(dpy, CurrentTime);
while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); while (XCheckMaskEvent(dpy, EnterWindowMask, &ev));
} }

View File

@ -1 +1,2 @@
static void dragmfact(const Arg *arg); static void dragmfact(const Arg *arg);

View File

@ -127,3 +127,4 @@ case $# in
exit 1 exit 1
;; ;;
esac esac

View File

@ -98,3 +98,4 @@ fake_signal(void)
// No fake signal was sent, so proceed with update // No fake signal was sent, so proceed with update
return 0; return 0;
} }

View File

@ -11,3 +11,4 @@ static void tagex(const Arg *arg);
static void toggletagex(const Arg *arg); static void toggletagex(const Arg *arg);
static void tagallex(const Arg *arg); static void tagallex(const Arg *arg);
static int fake_signal(void); static int fake_signal(void);

View File

@ -193,3 +193,4 @@ togglehorizontalexpand(const Arg *arg)
else if (arg->i > 0) expand(EXPAND_RIGHT); else if (arg->i > 0) expand(EXPAND_RIGHT);
else expand(EXPAND_LEFT | EXPAND_RIGHT); else expand(EXPAND_LEFT | EXPAND_RIGHT);
} }

View File

@ -6,3 +6,4 @@ void toggleverticalexpand(const Arg *arg);
void togglehorizontalexpand(const Arg *arg); void togglehorizontalexpand(const Arg *arg);
void exresize(const Arg *arg); void exresize(const Arg *arg);
void explace(const Arg *arg); void explace(const Arg *arg);

View File

@ -16,3 +16,4 @@ togglefakefullscreen(const Arg *arg)
setfullscreen(c, 1); setfullscreen(c, 1);
} }
} }

View File

@ -1 +1,2 @@
static void togglefakefullscreen(const Arg *arg); static void togglefakefullscreen(const Arg *arg);

View File

@ -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_p = cp;
*out_s = MAX(cs - 2*cbw, 1); *out_s = MAX(cs - 2*cbw, 1);
} }

View File

@ -1,3 +1,4 @@
static void floatpos(const Arg *arg); static void floatpos(const Arg *arg);
static void setfloatpos(Client *c, const char *floatpos); 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); 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);

View File

@ -99,3 +99,4 @@ tagandviewtoright(const Arg *arg)
#endif // BAR_EWMHTAGS_PATCH #endif // BAR_EWMHTAGS_PATCH
} }
} }

View File

@ -4,3 +4,4 @@ static void viewtoleft(const Arg *arg);
static void viewtoright(const Arg *arg); static void viewtoright(const Arg *arg);
static void tagandviewtoleft(const Arg *arg); static void tagandviewtoleft(const Arg *arg);
static void tagandviewtoright(const Arg *arg); static void tagandviewtoright(const Arg *arg);

View File

@ -63,3 +63,4 @@ focusdir(const Arg *arg)
restack(f->mon); restack(f->mon);
} }
} }

View File

@ -1 +1,2 @@
static void focusdir(const Arg *arg); static void focusdir(const Arg *arg);

View File

@ -11,3 +11,4 @@ focusmaster(const Arg *arg)
if (c) if (c)
focus(c); focus(c);
} }

View File

@ -1 +1,2 @@
static void focusmaster(const Arg *arg); static void focusmaster(const Arg *arg);

View File

@ -13,3 +13,4 @@ focusurgent(const Arg *arg)
} }
} }
} }

View File

@ -1 +1,2 @@
static void focusurgent(const Arg *arg); static void focusurgent(const Arg *arg);

View File

@ -38,3 +38,4 @@ fake_signal(void)
// No fake signal was sent, so proceed with update // No fake signal was sent, so proceed with update
return 0; return 0;
} }

View File

@ -5,3 +5,4 @@ typedef struct {
} Signal; } Signal;
static int fake_signal(void); static int fake_signal(void);

View File

@ -15,3 +15,4 @@ fullscreen(const Arg *arg)
} }
togglebar(arg); togglebar(arg);
} }

View File

@ -1 +1,2 @@
static void fullscreen(const Arg *arg); static void fullscreen(const Arg *arg);

View File

@ -353,3 +353,4 @@
#if TILE_LAYOUT #if TILE_LAYOUT
#include "layout_tile.c" #include "layout_tile.c"
#endif #endif

View File

@ -343,3 +343,4 @@
#if TILE_LAYOUT #if TILE_LAYOUT
#include "layout_tile.h" #include "layout_tile.h"
#endif #endif

View File

@ -81,3 +81,4 @@ inplacerotate(const Arg *arg)
arrange(selmon); arrange(selmon);
focus(c); focus(c);
} }

View File

@ -1 +1,2 @@
static void inplacerotate(const Arg *arg); static void inplacerotate(const Arg *arg);

View File

@ -16,3 +16,4 @@ updateinset(const Arg *arg)
for (Monitor *m = mons; m; m = m->next) for (Monitor *m = mons; m; m = m->next)
setinset(m, *inset); setinset(m, *inset);
} }

View File

@ -1,2 +1,3 @@
static void setinset(Monitor *m, Inset inset); static void setinset(Monitor *m, Inset inset);
static void updateinset(const Arg *arg); static void updateinset(const Arg *arg);

View File

@ -108,3 +108,4 @@ setstatus(const Arg *arg)
for (m = mons; m; m = m->next) for (m = mons; m; m = m->next)
drawbar(m); drawbar(m);
} }

View File

@ -4,3 +4,4 @@ static int handlexevent(struct epoll_event *ev);
static void setlayoutsafe(const Arg *arg); static void setlayoutsafe(const Arg *arg);
static void setupepoll(void); static void setupepoll(void);
static void setstatus(const Arg *arg); static void setstatus(const Arg *arg);

View File

@ -64,3 +64,4 @@ ipc_list_get_client(IPCClientList list, int fd)
return NULL; return NULL;
} }

View File

@ -59,3 +59,4 @@ void ipc_list_remove_client(IPCClientList *list, IPCClient *c);
IPCClient *ipc_list_get_client(IPCClientList list, int fd); IPCClient *ipc_list_get_client(IPCClientList list, int fd);
#endif // IPC_CLIENT_H_ #endif // IPC_CLIENT_H_

View File

@ -546,3 +546,4 @@ main(int argc, char *argv[])
return 0; return 0;
} }

View File

@ -1199,3 +1199,4 @@ ipc_handle_socket_epoll_event(struct epoll_event *ev)
return new_fd; return new_fd;
} }

View File

@ -317,3 +317,4 @@ int ipc_handle_client_epoll_event(struct epoll_event *ev, Monitor *mons,
int ipc_handle_socket_epoll_event(struct epoll_event *ev); int ipc_handle_socket_epoll_event(struct epoll_event *ev);
#endif /* IPC_H_ */ #endif /* IPC_H_ */

View File

@ -133,3 +133,4 @@ nullterminate(char **str, size_t *len)
return 0; return 0;
} }

View File

@ -2,3 +2,4 @@ int normalizepath(const char *path, char **normal);
int mkdirp(const char *path); int mkdirp(const char *path);
int parentdir(const char *path, char **parent); int parentdir(const char *path, char **parent);
int nullterminate(char **str, size_t *len); int nullterminate(char **str, size_t *len);

View File

@ -353,3 +353,4 @@ dump_error_message(yajl_gen gen, const char *reason)
return 0; return 0;
} }

View File

@ -63,3 +63,4 @@ int dump_focused_state_change_event(yajl_gen gen, const int mon_num,
int dump_error_message(yajl_gen gen, const char *reason); int dump_error_message(yajl_gen gen, const char *reason);
#endif // YAJL_DUMPS_H_ #endif // YAJL_DUMPS_H_

View File

@ -141,3 +141,4 @@ setkeymode(const Arg *arg)
clearcmd(&a); clearcmd(&a);
grabkeys(); grabkeys();
} }

View File

@ -19,3 +19,4 @@ static void setkeymode(const Arg *arg);
static unsigned int cmdmod[4]; static unsigned int cmdmod[4];
static unsigned int keymode = INSERTMODE; static unsigned int keymode = INSERTMODE;
static KeySym cmdkeysym[4]; static KeySym cmdkeysym[4];

View File

@ -25,3 +25,4 @@ killunsel(const Arg *arg)
} }
} }
} }

View File

@ -1 +1,2 @@
static void killunsel(const Arg *arg); static void killunsel(const Arg *arg);

View File

@ -72,3 +72,4 @@ bstack(Monitor *m)
} }
} }
} }

View File

@ -1 +1,2 @@
static void bstack(Monitor *m); static void bstack(Monitor *m);

View File

@ -74,3 +74,4 @@ bstackhoriz(Monitor *m)
} }
} }
} }

View File

@ -1 +1,2 @@
static void bstackhoriz(Monitor *m); static void bstackhoriz(Monitor *m);

View File

@ -92,3 +92,4 @@ centeredfloatingmaster(Monitor *m)
#endif #endif
} }
} }

View File

@ -1 +1,2 @@
static void centeredfloatingmaster(Monitor *m); static void centeredfloatingmaster(Monitor *m);

View File

@ -157,3 +157,4 @@ centeredmaster(Monitor *m)
} }
} }
} }

View File

@ -1 +1,2 @@
static void centeredmaster(Monitor *m); static void centeredmaster(Monitor *m);

View File

@ -71,3 +71,4 @@ col(Monitor *m)
#endif #endif
} }
} }

View File

@ -1 +1,2 @@
static void col(Monitor *); static void col(Monitor *);

View File

@ -64,3 +64,4 @@ deck(Monitor *m)
resize(c, sx, sy, sw - (2*c->bw), sh - (2*c->bw), 0); resize(c, sx, sy, sw - (2*c->bw), sh - (2*c->bw), 0);
} }
} }

View File

@ -1 +1,2 @@
static void deck(Monitor *m); static void deck(Monitor *m);

View File

@ -49,3 +49,4 @@ getfacts(Monitor *m, int msize, int ssize, float *mf, float *sf, int *mr, int *s
*sr = ssize - stotal; // the remainder (rest) of pixels after an even stack split *sr = ssize - stotal; // the remainder (rest) of pixels after an even stack split
} }
#endif // CFACTS_PATCH #endif // CFACTS_PATCH

View File

@ -188,3 +188,4 @@ spiral(Monitor *m)
fibonacci(m, 0); fibonacci(m, 0);
} }
#endif #endif

View File

@ -5,3 +5,4 @@ static void fibonacci(Monitor *m, int s);
#if FIBONACCI_SPIRAL_LAYOUT #if FIBONACCI_SPIRAL_LAYOUT
static void spiral(Monitor *m); static void spiral(Monitor *m);
#endif // FIBONACCI_SPIRAL_LAYOUT #endif // FIBONACCI_SPIRAL_LAYOUT

View File

@ -888,3 +888,4 @@ incnstack(const Arg *arg)
#endif // PERTAG_PATCH #endif // PERTAG_PATCH
arrange(selmon); arrange(selmon);
} }

View File

@ -118,3 +118,4 @@ static char tilesymb[] = {
64, // "@", 64, // "@",
84, // "T", 84, // "T",
}; };

View File

@ -96,3 +96,4 @@ gaplessgrid(Monitor *m)
} }
} }
#endif #endif

View File

@ -1 +1,2 @@
static void gaplessgrid(Monitor *m); static void gaplessgrid(Monitor *m);

View File

@ -58,3 +58,4 @@ grid(Monitor *m)
} }
} }
#endif #endif

View File

@ -1 +1,2 @@
static void grid(Monitor *m); static void grid(Monitor *m);

View File

@ -101,3 +101,4 @@ horizgrid(Monitor *m) {
#endif // VANITYGAPS_PATCH #endif // VANITYGAPS_PATCH
} }
} }

View File

@ -1 +1,2 @@
static void horizgrid(Monitor *m); static void horizgrid(Monitor *m);

View File

@ -35,3 +35,4 @@ monocle(Monitor *m)
resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0);
} }
#endif // VANITYGAPS_PATCH #endif // VANITYGAPS_PATCH

View File

@ -1 +1,2 @@
static void monocle(Monitor *m); static void monocle(Monitor *m);

View File

@ -101,3 +101,4 @@ nrowgrid(Monitor *m)
} }
} }
#endif #endif

View File

@ -1 +1,2 @@
static void nrowgrid(Monitor *m); static void nrowgrid(Monitor *m);

View File

@ -71,3 +71,4 @@ tile(Monitor *m)
#endif #endif
} }
} }

View File

@ -1 +1,2 @@
static void tile(Monitor *); static void tile(Monitor *);

View File

@ -67,3 +67,4 @@ togglehorizontalmax(const Arg *arg)
maximize(selmon->wx, selmon->sel->y, selmon->ww - 2 * borderpx, selmon->sel->h); maximize(selmon->wx, selmon->sel->y, selmon->ww - 2 * borderpx, selmon->sel->h);
} }
#endif // SETBORDERPX_PATCH #endif // SETBORDERPX_PATCH

View File

@ -2,3 +2,4 @@ static void maximize(int x, int y, int w, int h);
static void togglemax(const Arg *arg); static void togglemax(const Arg *arg);
static void toggleverticalmax(const Arg *arg); static void toggleverticalmax(const Arg *arg);
static void togglehorizontalmax(const Arg *arg); static void togglehorizontalmax(const Arg *arg);

View File

@ -27,3 +27,4 @@ moveplace(const Arg *arg)
resize(c, nx, ny, nw, nh, True); resize(c, nx, ny, nw, nh, True);
XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, nw/2, nh/2); XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, nw/2, nh/2);
} }

View File

@ -1,3 +1,4 @@
enum { WIN_NW, WIN_N, WIN_NE, WIN_W, WIN_C, WIN_E, WIN_SW, WIN_S, WIN_SE }; enum { WIN_NW, WIN_N, WIN_NE, WIN_W, WIN_C, WIN_E, WIN_SW, WIN_S, WIN_SE };
static void moveplace(const Arg *arg); static void moveplace(const Arg *arg);

View File

@ -62,3 +62,4 @@ moveresize(const Arg *arg) {
XWarpPointer(dpy, None, None, 0, 0, 0, 0, nmx, nmy); XWarpPointer(dpy, None, None, 0, 0, 0, 0, nmx, nmy);
} }
} }

View File

@ -1 +1,2 @@
static void moveresize(const Arg *arg); static void moveresize(const Arg *arg);

View File

@ -48,3 +48,4 @@ movestack(const Arg *arg)
arrange(selmon); arrange(selmon);
} }
} }

View File

@ -1 +1,2 @@
static void movestack(const Arg *arg); static void movestack(const Arg *arg);

View File

@ -142,3 +142,4 @@ void mpdcontrol()
mpd_connection_free(conn); mpd_connection_free(conn);
} }
} }

View File

@ -1,2 +1,3 @@
static void mpdchange(const Arg *direction); static void mpdchange(const Arg *direction);
static void mpdcontrol(); static void mpdcontrol();

View File

@ -5,3 +5,4 @@ togglenomodbuttons(const Arg *arg)
if (selmon->sel) if (selmon->sel)
grabbuttons(selmon->sel, 1); grabbuttons(selmon->sel, 1);
} }

View File

@ -1 +1,2 @@
static void togglenomodbuttons(const Arg *arg); static void togglenomodbuttons(const Arg *arg);

View File

@ -75,3 +75,4 @@ pertagview(const Arg *arg)
togglebar(NULL); togglebar(NULL);
#endif // PERTAGBAR_PATCH #endif // PERTAGBAR_PATCH
} }

View File

@ -1 +1,2 @@
static void pertagview(const Arg *arg); static void pertagview(const Arg *arg);

View File

@ -150,3 +150,4 @@ recttoclient(int x, int y, int w, int h)
} }
return r; return r;
} }

View File

@ -4,3 +4,4 @@
static void moveorplace(const Arg *arg); static void moveorplace(const Arg *arg);
static void placemouse(const Arg *arg); static void placemouse(const Arg *arg);
static Client *recttoclient(int x, int y, int w, int h); static Client *recttoclient(int x, int y, int w, int h);

View File

@ -69,3 +69,4 @@ pushdown(const Arg *arg)
focus(sel); focus(sel);
arrange(selmon); arrange(selmon);
} }

View File

@ -2,3 +2,4 @@ static Client * nextc(Client *c, float f);
static Client * prevc(Client *c, float f); static Client * prevc(Client *c, float f);
static void pushup(const Arg *arg); static void pushup(const Arg *arg);
static void pushdown(const Arg *arg); static void pushdown(const Arg *arg);

View File

@ -41,3 +41,4 @@ pushdown(const Arg *arg)
focus(sel); focus(sel);
arrange(selmon); arrange(selmon);
} }

View File

@ -1,3 +1,4 @@
Client * prevt(Client *c); Client * prevt(Client *c);
static void pushup(const Arg *arg); static void pushup(const Arg *arg);
static void pushdown(const Arg *arg); static void pushdown(const Arg *arg);

View File

@ -25,3 +25,4 @@ reorganizetags(const Arg *arg)
selmon->tagset[selmon->seltags] = selmon->sel->tags; selmon->tagset[selmon->seltags] = selmon->sel->tags;
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void reorganizetags(const Arg *arg); static void reorganizetags(const Arg *arg);

View File

@ -13,3 +13,4 @@ sigterm(int unused)
Arg a = {.i = 0}; Arg a = {.i = 0};
quit(&a); quit(&a);
} }

View File

@ -1,2 +1,3 @@
static void sighup(int unused); static void sighup(int unused);
static void sigterm(int unused); static void sigterm(int unused);

View File

@ -101,3 +101,4 @@ riospawnsync(const Arg *arg)
if (riodraw(NULL, slopspawnstyle)) if (riodraw(NULL, slopspawnstyle))
riopid = spawncmd(arg); riopid = spawncmd(arg);
} }

View File

@ -3,3 +3,4 @@ static void rioposition(Client *c, int x, int y, int w, int h);
static void rioresize(const Arg *arg); static void rioresize(const Arg *arg);
static void riospawn(const Arg *arg); static void riospawn(const Arg *arg);
static void riospawnsync(const Arg *arg); static void riospawnsync(const Arg *arg);

View File

@ -50,3 +50,4 @@ rotatestack(const Arg *arg)
restack(selmon); restack(selmon);
} }
} }

View File

@ -1,3 +1,4 @@
static void enqueue(Client *c); static void enqueue(Client *c);
static void enqueuestack(Client *c); static void enqueuestack(Client *c);
static void rotatestack(const Arg *arg); static void rotatestack(const Arg *arg);

View File

@ -48,3 +48,4 @@ void drawroundedcorners(Client *c)
XFreePixmap(dpy, mask); XFreePixmap(dpy, mask);
XFreeGC(dpy, shape_gc); XFreeGC(dpy, shape_gc);
} }

View File

@ -1 +1,2 @@
static void drawroundedcorners(Client *c); static void drawroundedcorners(Client *c);

View File

@ -74,3 +74,4 @@ togglescratch(const Arg *arg)
spawn(&sparg); spawn(&sparg);
} }
} }

View File

@ -6,3 +6,4 @@ typedef struct {
static void removescratch(const Arg *arg); static void removescratch(const Arg *arg);
static void setscratch(const Arg *arg); static void setscratch(const Arg *arg);
static void togglescratch(const Arg *arg); static void togglescratch(const Arg *arg);

View File

@ -69,3 +69,4 @@ scratchpad_show_first(void)
if (c) if (c)
scratchpad_show_client(c); scratchpad_show_client(c);
} }

View File

@ -6,3 +6,4 @@ static void scratchpad_remove();
static void scratchpad_show(); static void scratchpad_show();
static void scratchpad_show_client(Client *c); static void scratchpad_show_client(Client *c);
static void scratchpad_show_first(void); static void scratchpad_show_first(void);

View File

@ -66,3 +66,4 @@ void self_restart(const Arg *arg)
execv(argv[0], argv); execv(argv[0], argv);
} }

View File

@ -1,2 +1,3 @@
char *get_dwm_path(); char *get_dwm_path();
void self_restart(const Arg *arg); void self_restart(const Arg *arg);

View File

@ -42,3 +42,4 @@ setborderpx(const Arg *arg)
} }
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void setborderpx(const Arg *arg); static void setborderpx(const Arg *arg);

View File

@ -16,3 +16,4 @@ shiftview(const Arg *arg)
view(&shifted); view(&shifted);
} }

View File

@ -1 +1,2 @@
static void shiftview(const Arg *arg); static void shiftview(const Arg *arg);

View File

@ -40,3 +40,4 @@ shiftviewclients(const Arg *arg)
view(&shifted); view(&shifted);
} }

View File

@ -1 +1,2 @@
static void shiftviewclients(const Arg *arg); static void shiftviewclients(const Arg *arg);

View File

@ -22,3 +22,4 @@ checkfloatingrules(Client *c)
if (ch.res_name) if (ch.res_name)
XFree(ch.res_name); XFree(ch.res_name);
} }

View File

@ -1 +1,2 @@
static void checkfloatingrules(Client *c); static void checkfloatingrules(Client *c);

View File

@ -13,3 +13,4 @@ sortscreens(XineramaScreenInfo *screens, int n)
} }
XFree(screen); XFree(screen);
} }

View File

@ -1,3 +1,4 @@
#define RIGHTOF(a,b) (a.y_org > b.y_org) || ((a.y_org == b.y_org) && (a.x_org > b.x_org)) #define RIGHTOF(a,b) (a.y_org > b.y_org) || ((a.y_org == b.y_org) && (a.x_org > b.x_org))
static void sortscreens(XineramaScreenInfo *screens, int n); static void sortscreens(XineramaScreenInfo *screens, int n);

View File

@ -110,3 +110,4 @@ stackpos(const Arg *arg)
return arg->i; return arg->i;
#endif // BAR_WINTITLEACTIONS_PATCH #endif // BAR_WINTITLEACTIONS_PATCH
} }

View File

@ -8,3 +8,4 @@
static void focusstack(const Arg *arg); static void focusstack(const Arg *arg);
static void pushstack(const Arg *arg); static void pushstack(const Arg *arg);
static int stackpos(const Arg *arg); static int stackpos(const Arg *arg);

View File

@ -6,3 +6,4 @@ togglesticky(const Arg *arg)
selmon->sel->issticky = !selmon->sel->issticky; selmon->sel->issticky = !selmon->sel->issticky;
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void togglesticky(const Arg *arg); static void togglesticky(const Arg *arg);

View File

@ -203,3 +203,4 @@ swallowingclient(Window w)
return NULL; return NULL;
} }

View File

@ -5,3 +5,4 @@ static Client *swallowingclient(Window w);
static Client *termforwin(const Client *c); static Client *termforwin(const Client *c);
static void unswallow(Client *c); static void unswallow(Client *c);
static pid_t winpid(Window w); static pid_t winpid(Window w);

View File

@ -19,3 +19,4 @@ swapfocus(const Arg *arg)
} }
} }
} }

View File

@ -1 +1,2 @@
static void swapfocus(const Arg *arg); static void swapfocus(const Arg *arg);

View File

@ -20,3 +20,4 @@ swaptags(const Arg *arg)
focus(NULL); focus(NULL);
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void swaptags(const Arg *arg); static void swaptags(const Arg *arg);

View File

@ -26,3 +26,4 @@ switchcol(const Arg *arg)
} }
} }
} }

View File

@ -1 +1,2 @@
static void switchcol(const Arg *arg); static void switchcol(const Arg *arg);

View File

@ -130,3 +130,4 @@ tabmode(const Arg *arg)
selmon->showtab = (selmon->showtab + 1 ) % showtab_nmodes; selmon->showtab = (selmon->showtab + 1 ) % showtab_nmodes;
arrange(selmon); arrange(selmon);
} }

View File

@ -2,3 +2,4 @@ static void drawtab(Monitor *m);
static void drawtabs(void); static void drawtabs(void);
static void focuswin(const Arg* arg); static void focuswin(const Arg* arg);
static void tabmode(const Arg *arg); static void tabmode(const Arg *arg);

View File

@ -23,3 +23,4 @@ tagall(const Arg *arg)
} }
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void tagall(const Arg *arg); static void tagall(const Arg *arg);

View File

@ -46,3 +46,4 @@ tagallmon(const Arg *arg)
focus(NULL); focus(NULL);
arrange(NULL); arrange(NULL);
} }

View File

@ -1 +1,2 @@
static void tagallmon(const Arg *arg); static void tagallmon(const Arg *arg);

View File

@ -41,3 +41,4 @@ tagothermon(const Arg *arg, int dir)
arrange(newmon); arrange(newmon);
} }
} }

View File

@ -6,3 +6,4 @@ static void tagprevmonex(const Arg *arg);
static void tagnextmon(const Arg *arg); static void tagnextmon(const Arg *arg);
static void tagprevmon(const Arg *arg); static void tagprevmon(const Arg *arg);
static void tagothermon(const Arg *arg, int dir); static void tagothermon(const Arg *arg, int dir);

View File

@ -72,3 +72,4 @@ tagswapmon(const Arg *arg)
focus(NULL); focus(NULL);
arrange(NULL); arrange(NULL);
} }

View File

@ -1 +1,2 @@
static void tagswapmon(const Arg *arg); static void tagswapmon(const Arg *arg);

View File

@ -36,3 +36,4 @@ resizemousescroll(const Arg *arg)
focus(NULL); focus(NULL);
} }
} }

View File

@ -1 +1,2 @@
static void resizemousescroll(const Arg *arg); static void resizemousescroll(const Arg *arg);

View File

@ -15,3 +15,4 @@ togglefullscreen(const Arg *arg)
setfullscreen(c, !c->isfullscreen); setfullscreen(c, !c->isfullscreen);
#endif // FAKEFULLSCREEN_CLIENT_PATCH #endif // FAKEFULLSCREEN_CLIENT_PATCH
} }

View File

@ -1 +1,2 @@
static void togglefullscreen(const Arg *arg); static void togglefullscreen(const Arg *arg);

View File

@ -31,3 +31,4 @@ transfer(const Arg *arg)
} }
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void transfer(const Arg *arg); static void transfer(const Arg *arg);

View File

@ -23,3 +23,4 @@ transferall(const Arg *arg)
selmon->nmaster = nstackclients; selmon->nmaster = nstackclients;
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void transferall(const Arg *arg); static void transferall(const Arg *arg);

View File

@ -12,3 +12,4 @@ unfloatvisible(const Arg *arg)
else else
arrange(selmon); arrange(selmon);
} }

View File

@ -1 +1,2 @@
static void unfloatvisible(const Arg *arg); static void unfloatvisible(const Arg *arg);

View File

@ -196,3 +196,4 @@ getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc)
*nc = n; // number of clients *nc = n; // number of clients
} }
#endif #endif

View File

@ -17,3 +17,4 @@ static void setgaps(int oh, int ov, int ih, int iv);
#if IPC_PATCH || DWMC_PATCH #if IPC_PATCH || DWMC_PATCH
static void setgapsex(const Arg *arg); static void setgapsex(const Arg *arg);
#endif // IPC_PATCH | DWMC_PATCH #endif // IPC_PATCH | DWMC_PATCH

View File

@ -35,3 +35,4 @@ warp(const Client *c)
XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w / 2, c->h / 2); XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w / 2, c->h / 2);
} }

View File

@ -1 +1,2 @@
static void warp(const Client *c); static void warp(const Client *c);

View File

@ -18,3 +18,4 @@ winview(const Arg* arg)
a.ui = c->tags; a.ui = c->tags;
view(&a); view(&a);
} }

View File

@ -1 +1,2 @@
static void winview(const Arg* arg); static void winview(const Arg* arg);

View File

@ -65,3 +65,4 @@ click_xkb(Bar *bar, Arg *arg, BarArg *a)
{ {
return ClkXKB; return ClkXKB;
} }

View File

@ -5,3 +5,4 @@ static void xkbeventnotify(XEvent *e);
static int width_xkb(Bar *bar, BarArg *a); static int width_xkb(Bar *bar, BarArg *a);
static int draw_xkb(Bar *bar, BarArg *a); static int draw_xkb(Bar *bar, BarArg *a);
static int click_xkb(Bar *bar, Arg *arg, BarArg *a); static int click_xkb(Bar *bar, Arg *arg, BarArg *a);

View File

@ -125,3 +125,4 @@ xrdb(const Arg *arg)
focus(NULL); focus(NULL);
arrange(NULL); arrange(NULL);
} }

View File

@ -19,3 +19,4 @@
static void loadxrdb(void); static void loadxrdb(void);
static void xrdb(const Arg *arg); static void xrdb(const Arg *arg);

View File

@ -11,3 +11,4 @@ findbefore(Client *c) {
for (p = c->mon->clients; p && p->next != c; p = p->next); for (p = c->mon->clients; p && p->next != c; p = p->next);
return p; return p;
} }

View File

@ -1 +1,2 @@
static Client *findbefore(Client *c); static Client *findbefore(Client *c);

View File

@ -1257,3 +1257,4 @@
* This can be optionally disabled in favour of other layouts. * This can be optionally disabled in favour of other layouts.
*/ */
#define MONOCLE_LAYOUT 1 #define MONOCLE_LAYOUT 1

View File

@ -40,3 +40,4 @@ int main(void) {
XCloseDisplay(d); XCloseDisplay(d);
exit(0); exit(0);
} }

1
util.c
View File

@ -33,3 +33,4 @@ die(const char *fmt, ...) {
exit(1); exit(1);
} }

1
util.h
View File

@ -16,3 +16,4 @@
void die(const char *fmt, ...); void die(const char *fmt, ...);
void *ecalloc(size_t nmemb, size_t size); void *ecalloc(size_t nmemb, size_t size);