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 // IPC_PATCH

1
drw.c
View File

@ -687,3 +687,4 @@ drw_cur_free(Drw *drw, Cur *cursor)
XFreeCursor(drw->dpy, cursor->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 */
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);
return EXIT_SUCCESS;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -50,3 +50,4 @@ updatecurrentdesktop(void)
long data[] = { i };
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 setviewport(void);
static void updatecurrentdesktop(void);

View File

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

View File

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

View File

@ -436,3 +436,4 @@ flextitlecalculate(
}
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 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);

View File

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

View File

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

View File

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

View File

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

View File

@ -119,3 +119,4 @@ drawpowerlinestatus(int xpos, char *stext, BarArg *barg)
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 drawpowerlinestatus(int x, char *stext, BarArg *a);
static int widthpowerlinestatus(char *stext);

View File

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

View File

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

View File

@ -31,3 +31,4 @@ click_status(Bar *bar, Arg *arg, BarArg *a)
{
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);
#endif // BAR_EXTRASTATUS_PATCH
static int click_status(Bar *bar, Arg *arg, BarArg *a);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -195,3 +195,4 @@ wintosystrayicon(Window w)
for (i = systray->icons; i && i->win != w; i = i->next);
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 Client *wintosystrayicon(Window w);

View File

@ -221,3 +221,4 @@ bartabcalculate(
}
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 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);

View File

@ -147,3 +147,4 @@ switchtag(const Arg *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 click_taggrid(Bar *bar, Arg *arg, BarArg *a);
static void switchtag(const Arg *arg);

View File

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

View File

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

View File

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

View File

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

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

View File

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

View File

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

View File

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

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);
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),
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);
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),
Arg *arg, BarArg *barg
);

View File

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

View File

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

View File

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

View File

@ -1 +1,2 @@
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";
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -193,3 +193,4 @@ togglehorizontalexpand(const Arg *arg)
else if (arg->i > 0) expand(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 exresize(const Arg *arg);
void explace(const Arg *arg);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1 +1,2 @@
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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -64,3 +64,4 @@ ipc_list_get_client(IPCClientList list, int fd)
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);
#endif // IPC_CLIENT_H_

View File

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

View File

@ -1199,3 +1199,4 @@ ipc_handle_socket_epoll_event(struct epoll_event *ev)
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);
#endif /* IPC_H_ */

View File

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

View File

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

View File

@ -353,3 +353,4 @@ dump_error_message(yajl_gen gen, const char *reason)
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);
#endif // YAJL_DUMPS_H_

View File

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

View File

@ -19,3 +19,4 @@ static void setkeymode(const Arg *arg);
static unsigned int cmdmod[4];
static unsigned int keymode = INSERTMODE;
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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1 +1,2 @@
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);
}
}

View File

@ -1 +1,2 @@
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
}
#endif // CFACTS_PATCH

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1 +1,2 @@
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);
}
#endif // VANITYGAPS_PATCH

View File

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

View File

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

View File

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

View File

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

View File

@ -1 +1,2 @@
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);
}
#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 toggleverticalmax(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);
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 };
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);
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,4 @@
Client * prevt(Client *c);
static void pushup(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;
arrange(selmon);
}

View File

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

View File

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

View File

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

View File

@ -101,3 +101,4 @@ riospawnsync(const Arg *arg)
if (riodraw(NULL, slopspawnstyle))
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 riospawn(const Arg *arg);
static void riospawnsync(const Arg *arg);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -13,3 +13,4 @@ sortscreens(XineramaScreenInfo *screens, int n)
}
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))
static void sortscreens(XineramaScreenInfo *screens, int n);

View File

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

View File

@ -8,3 +8,4 @@
static void focusstack(const Arg *arg);
static void pushstack(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;
arrange(selmon);
}

View File

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

View File

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

View File

@ -5,3 +5,4 @@ static Client *swallowingclient(Window w);
static Client *termforwin(const Client *c);
static void unswallow(Client *c);
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);

View File

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

View File

@ -1 +1,2 @@
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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1 +1,2 @@
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
}
#endif

View File

@ -17,3 +17,4 @@ static void setgaps(int oh, int ov, int ih, int iv);
#if IPC_PATCH || DWMC_PATCH
static void setgapsex(const Arg *arg);
#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);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -19,3 +19,4 @@
static void loadxrdb(void);
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);
return p;
}

View File

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

View File

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

View File

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

1
util.c
View File

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

1
util.h
View File

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