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

@ -21,4 +21,5 @@ 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

@ -80,4 +80,5 @@ runautostart(void)
free(pathpfx); free(pathpfx);
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

@ -3,4 +3,5 @@ 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

@ -90,4 +90,5 @@ wmclasscontains(Window win, const char *class, const char *name)
XFree(ch.res_name); XFree(ch.res_name);
return res; return res;
} }

View File

@ -1,4 +1,5 @@
static void managealtbar(Window win, XWindowAttributes *wa); 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

@ -47,4 +47,5 @@ sigstatusbar(const Arg *arg)
sv.sival_int = arg->i; sv.sival_int = arg->i;
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

@ -49,4 +49,5 @@ 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

@ -3,4 +3,5 @@ static void setdesktopnames(void);
static void setfloatinghint(Client *c); 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

@ -435,4 +435,5 @@ flextitlecalculate(
c = flextitledrawarea(m, m->clients, flt_x, rr, w * FLEXWINTITLE_FLOATWEIGHT + rw, clientsnfloating, SCHEMEFOR(GRP_FLOAT), 0, 0, 1, passx, tabfn, arg, barg); // floating c = flextitledrawarea(m, m->clients, flt_x, rr, w * FLEXWINTITLE_FLOATWEIGHT + rw, clientsnfloating, SCHEMEFOR(GRP_FLOAT), 0, 0, 1, passx, tabfn, arg, barg); // floating
} }
return 1; return 1;
} }

View File

@ -7,4 +7,5 @@ static void flextitleclick(Monitor *m, Client *c, int passx, int x, int w, int u
static int flextitlecalculate(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 flextitlecalculate(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 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

@ -34,4 +34,5 @@ keyrelease(XEvent *e)
#if COMBO_PATCH #if COMBO_PATCH
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

@ -107,4 +107,5 @@ drawstateindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w,
drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, floatindicatortype); drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, floatindicatortype);
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

@ -17,4 +17,5 @@ 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

@ -14,4 +14,5 @@ int
click_ltsymbol(Bar *bar, Arg *arg, BarArg *a) 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

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

View File

@ -8,4 +8,5 @@ static int draw_pwrl_status_es(Bar *bar, BarArg *a);
#endif // BAR_EXTRASTATUS_PATCH #endif // BAR_EXTRASTATUS_PATCH
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

@ -6,4 +6,5 @@ static int draw_status(Bar *bar, BarArg *a);
#if BAR_EXTRASTATUS_PATCH #if BAR_EXTRASTATUS_PATCH
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

@ -264,4 +264,5 @@ status2dtextlength(char* stext)
w += TEXTWM(text) - lrpad; w += TEXTWM(text) - lrpad;
free(p); free(p);
return w; return w;
} }

View File

@ -10,4 +10,5 @@ static int draw_status2d_es(Bar *bar, BarArg *a);
static int click_status2d(Bar *bar, Arg *arg, BarArg *a); 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

@ -8,4 +8,5 @@ static void copyvalidchars(char *text, char *rawtext);
typedef struct { typedef struct {
const char *cmd; const char *cmd;
int id; int id;
} StatusCmd; } StatusCmd;

View File

@ -20,4 +20,5 @@ textw_wosc(char *s)
} }
return sw; return sw;
} }

View File

@ -194,4 +194,5 @@ wintosystrayicon(Window w)
return i; return i;
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

@ -220,4 +220,5 @@ bartabcalculate(
#endif // BARTAB_FLOATWEIGHT #endif // BARTAB_FLOATWEIGHT
} }
return 1; return 1;
} }

View File

@ -4,4 +4,5 @@ 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

@ -146,4 +146,5 @@ switchtag(const Arg *arg)
if (arg->ui & SWITCHTAG_TOGGLEVIEW) { if (arg->ui & SWITCHTAG_TOGGLEVIEW) {
toggleview (&new_arg); toggleview (&new_arg);
} }
} }

View File

@ -1,4 +1,5 @@
static int width_taggrid(Bar *bar, BarArg *a); 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

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

View File

@ -4,4 +4,5 @@ enum {
ALT_TAGS_DECORATION, ALT_TAGS_DECORATION,
}; };
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

@ -65,4 +65,5 @@ 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

@ -42,4 +42,5 @@ calc_wintitle_floating(
r = tabw % clientsnfloating; r = tabw % clientsnfloating;
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

@ -5,4 +5,5 @@ static int calc_wintitle_floating(
Monitor *m, int offx, int tabw, int passx, Monitor *m, int offx, int tabw, int passx,
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

@ -42,4 +42,5 @@ calc_wintitle_hidden(
r = tabw % clientsnhidden; r = tabw % clientsnhidden;
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

@ -5,4 +5,5 @@ static int calc_wintitle_hidden(
Monitor *m, int offx, int tabw, int passx, Monitor *m, int offx, int tabw, int passx,
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

@ -90,4 +90,5 @@ showhideclient(const Arg *arg)
} else { } else {
hide(c); hide(c);
} }
} }

View File

@ -2,4 +2,5 @@ static void hide(Client *c);
static void show(Client *c); 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

@ -20,4 +20,5 @@ setcfact(const Arg *arg)
f = 4.0; f = 4.0;
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

@ -2,4 +2,5 @@ char*
help(void) 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

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

View File

@ -2,4 +2,5 @@
static void keyrelease(XEvent *e); 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

@ -25,4 +25,5 @@ autostart_exec()
/* skip arguments */ /* skip arguments */
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

@ -35,4 +35,5 @@ updatemotifhints(Client *c)
} }
XFree(p); XFree(p);
} }
} }

View File

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

View File

@ -13,4 +13,5 @@ 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

@ -79,4 +79,5 @@ 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

@ -228,4 +228,5 @@ 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

@ -5,4 +5,5 @@ void togglemaximize(const Arg *arg);
void toggleverticalexpand(const Arg *arg); 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

@ -98,4 +98,5 @@ tagandviewtoright(const Arg *arg)
updatecurrentdesktop(); updatecurrentdesktop();
#endif // BAR_EWMHTAGS_PATCH #endif // BAR_EWMHTAGS_PATCH
} }
} }

View File

@ -3,4 +3,5 @@ static void tagtoright(const Arg *arg);
static void viewtoleft(const Arg *arg); 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

@ -62,4 +62,5 @@ focusdir(const Arg *arg)
focus(f); focus(f);
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

@ -10,4 +10,5 @@ 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

@ -12,4 +12,5 @@ focusurgent(const Arg *arg)
focus(c); focus(c);
} }
} }
} }

View File

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

View File

@ -37,4 +37,5 @@ 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

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

View File

@ -14,4 +14,5 @@ fullscreen(const Arg *arg)
setlayout(&((Arg) { .v = last_layout })); setlayout(&((Arg) { .v = last_layout }));
} }
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

@ -80,4 +80,5 @@ 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

@ -15,4 +15,5 @@ updateinset(const Arg *arg)
Inset *inset = (Inset *)arg->v; Inset *inset = (Inset *)arg->v;
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

@ -107,4 +107,5 @@ setstatus(const Arg *arg)
#endif // BAR_EXTRASTATUS_PATCH | BAR_STATUSCMD_PATCH #endif // BAR_EXTRASTATUS_PATCH | BAR_STATUSCMD_PATCH
for (m = mons; m; m = m->next) for (m = mons; m; m = m->next)
drawbar(m); drawbar(m);
} }

View File

@ -3,4 +3,5 @@
static int handlexevent(struct epoll_event *ev); 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

@ -1,4 +1,5 @@
int normalizepath(const char *path, char **normal); 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

@ -140,4 +140,5 @@ setkeymode(const Arg *arg)
keymode = arg->ui; keymode = arg->ui;
clearcmd(&a); clearcmd(&a);
grabkeys(); grabkeys();
} }

View File

@ -18,4 +18,5 @@ static void setkeymode(const Arg *arg);
/* variables */ /* variables */
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

@ -24,4 +24,5 @@ killunsel(const Arg *arg)
} }
} }
} }
} }

View File

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

View File

@ -71,4 +71,5 @@ bstack(Monitor *m)
#endif #endif
} }
} }
} }

View File

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

View File

@ -73,4 +73,5 @@ bstackhoriz(Monitor *m)
#endif #endif
} }
} }
} }

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

@ -156,4 +156,5 @@ centeredmaster(Monitor *m)
} }
} }
} }
} }

View File

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

View File

@ -70,4 +70,5 @@ col(Monitor *m)
sy += HEIGHT(c); sy += HEIGHT(c);
#endif #endif
} }
} }

View File

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

View File

@ -63,4 +63,5 @@ deck(Monitor *m)
} else { } else {
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

@ -4,4 +4,5 @@ static void dwindle(Monitor *m);
static void fibonacci(Monitor *m, int s); 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

@ -57,4 +57,5 @@ grid(Monitor *m)
resize(c, cx, cy, cw + (cc < cwrest ? 1 : 0) - 2*c->bw, ch + (cr < chrest ? 1 : 0) - 2*c->bw, False); resize(c, cx, cy, cw + (cc < cwrest ? 1 : 0) - 2*c->bw, ch + (cr < chrest ? 1 : 0) - 2*c->bw, False);
} }
} }
#endif #endif

View File

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

View File

@ -100,4 +100,5 @@ horizgrid(Monitor *m) {
sx += WIDTH(c); sx += WIDTH(c);
#endif // VANITYGAPS_PATCH #endif // VANITYGAPS_PATCH
} }
} }

View File

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

View File

@ -34,4 +34,5 @@ monocle(Monitor *m)
for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) for (c = nexttiled(m->clients); c; c = nexttiled(c->next))
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

@ -100,4 +100,5 @@ nrowgrid(Monitor *m)
resize(c, cx, cy, cw - (2*c->bw), ch - (2*c->bw), 0); resize(c, cx, cy, cw - (2*c->bw), ch - (2*c->bw), 0);
} }
} }
#endif #endif

View File

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

View File

@ -70,4 +70,5 @@ tile(Monitor *m)
sy += HEIGHT(c); sy += HEIGHT(c);
#endif #endif
} }
} }

View File

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

View File

@ -66,4 +66,5 @@ 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

@ -1,4 +1,5 @@
static void maximize(int x, int y, int w, int h); 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

@ -26,4 +26,5 @@ moveplace(const Arg *arg)
ny = selmon->wy + selmon->wh/2 - nh/2 - c->bw; ny = selmon->wy + selmon->wh/2 - nh/2 - c->bw;
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

@ -61,4 +61,5 @@ moveresize(const Arg *arg) {
nmy = c->y - oy + c->h - oh; nmy = c->y - oy + c->h - oh;
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

@ -47,4 +47,5 @@ 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

@ -141,4 +141,5 @@ void mpdcontrol()
mpd_status_free(status); mpd_status_free(status);
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

@ -4,4 +4,5 @@ togglenomodbuttons(const Arg *arg)
nomodbuttons = !nomodbuttons; nomodbuttons = !nomodbuttons;
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

@ -74,4 +74,5 @@ pertagview(const Arg *arg)
if (selmon->showbar != selmon->pertag->showbars[selmon->pertag->curtag]) if (selmon->showbar != selmon->pertag->showbars[selmon->pertag->curtag])
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

@ -149,4 +149,5 @@ 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

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

View File

@ -1,4 +1,5 @@
static Client * nextc(Client *c, float f); 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

@ -40,4 +40,5 @@ 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

@ -24,4 +24,5 @@ reorganizetags(const Arg *arg)
if (selmon->sel) if (selmon->sel)
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

@ -12,4 +12,5 @@ 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

@ -100,4 +100,5 @@ 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

@ -49,4 +49,5 @@ rotatestack(const Arg *arg)
focus(f); focus(f);
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

@ -47,4 +47,5 @@ void drawroundedcorners(Client *c)
XShapeCombineMask(dpy, win, ShapeBounding, 0, 0, mask, ShapeSet); XShapeCombineMask(dpy, win, ShapeBounding, 0, 0, mask, ShapeSet);
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

@ -73,4 +73,5 @@ togglescratch(const Arg *arg)
selmon->tagset[selmon->seltags] |= scratchtag; selmon->tagset[selmon->seltags] |= scratchtag;
spawn(&sparg); spawn(&sparg);
} }
} }

View File

@ -5,4 +5,5 @@ 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

@ -68,4 +68,5 @@ scratchpad_show_first(void)
for (c = selmon->clients; c && c->tags != SCRATCHPAD_MASK; c = c->next); for (c = selmon->clients; c && c->tags != SCRATCHPAD_MASK; c = c->next);
if (c) if (c)
scratchpad_show_client(c); scratchpad_show_client(c);
} }

View File

@ -5,4 +5,5 @@ static _Bool scratchpad_last_showed_is_killed(void);
static void scratchpad_remove(); 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

@ -39,4 +39,5 @@ shiftviewclients(const Arg *arg)
} while (tagmask && !(shifted.ui & tagmask)); } while (tagmask && !(shifted.ui & tagmask));
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

@ -12,4 +12,5 @@ sortscreens(XineramaScreenInfo *screens, int n)
memcpy(&screens[j], &screen[0], sizeof(XineramaScreenInfo)); memcpy(&screens[j], &screen[0], sizeof(XineramaScreenInfo));
} }
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

@ -7,4 +7,5 @@
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

@ -5,4 +5,5 @@ togglesticky(const Arg *arg)
return; return;
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

@ -4,4 +4,5 @@ static int swallow(Client *p, Client *c);
static Client *swallowingclient(Window w); 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

@ -18,4 +18,5 @@ swapfocus(const Arg *arg)
restack(selmon); restack(selmon);
} }
} }
} }

View File

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

View File

@ -19,4 +19,5 @@ 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

@ -25,4 +25,5 @@ switchcol(const Arg *arg)
break; break;
} }
} }
} }

View File

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

View File

@ -129,4 +129,5 @@ tabmode(const Arg *arg)
else else
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

@ -22,4 +22,5 @@ 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

@ -45,4 +45,5 @@ 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

@ -71,4 +71,5 @@ 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

@ -22,4 +22,5 @@ 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

@ -11,4 +11,5 @@ unfloatvisible(const Arg *arg)
setlayout(arg); setlayout(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

@ -16,4 +16,5 @@ static void getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int
static void setgaps(int oh, int ov, int ih, int iv); 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

@ -17,4 +17,5 @@ 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

@ -4,4 +4,5 @@ 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

@ -124,4 +124,5 @@ 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

@ -10,4 +10,5 @@ findbefore(Client *c) {
return NULL; return NULL;
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);