summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/dwm.h b/dwm.h
index f74c17b..6fe9e15 100644
--- a/dwm.h
+++ b/dwm.h
@@ -90,7 +90,6 @@ extern char stext[256]; /* status text */
90extern int screen, sx, sy, sw, sh; /* screen geometry */ 90extern int screen, sx, sy, sw, sh; /* screen geometry */
91extern int wax, way, wah, waw; /* windowarea geometry */ 91extern int wax, way, wah, waw; /* windowarea geometry */
92extern unsigned int bh, blw; /* bar height, bar layout label width */ 92extern unsigned int bh, blw; /* bar height, bar layout label width */
93extern unsigned int master, nmaster; /* master percent, number of master clients */
94extern unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ 93extern unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */
95extern void (*handler[LASTEvent])(XEvent *); /* event handler */ 94extern void (*handler[LASTEvent])(XEvent *); /* event handler */
96extern Atom wmatom[WMLast], netatom[NetLast]; 95extern Atom wmatom[WMLast], netatom[NetLast];
@@ -105,15 +104,14 @@ extern Window root, barwin;
105/* client.c */ 104/* client.c */
106extern void configure(Client *c); /* send synthetic configure event */ 105extern void configure(Client *c); /* send synthetic configure event */
107extern void focus(Client *c); /* focus c, c may be NULL */ 106extern void focus(Client *c); /* focus c, c may be NULL */
108extern void killclient(Arg *arg); /* kill c nicely */ 107extern void killclient(Arg arg); /* kill c nicely */
109extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ 108extern void manage(Window w, XWindowAttributes *wa); /* manage new client */
110extern void resize(Client *c, int x, int y, 109extern void resize(Client *c, int x, int y,
111 int w, int h, Bool sizehints); /* resize with given coordinates c*/ 110 int w, int h, Bool sizehints); /* resize with given coordinates c*/
112extern void toggleversatile(Arg *arg); /* toggles focused client between versatile/and non-versatile state */ 111extern void toggleversatile(Arg arg); /* toggles focused client between versatile/and non-versatile state */
113extern void updatesizehints(Client *c); /* update the size hint variables of c */ 112extern void updatesizehints(Client *c); /* update the size hint variables of c */
114extern void updatetitle(Client *c); /* update the name of c */ 113extern void updatetitle(Client *c); /* update the name of c */
115extern void unmanage(Client *c); /* destroy c */ 114extern void unmanage(Client *c); /* destroy c */
116extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */
117 115
118/* draw.c */ 116/* draw.c */
119extern void drawstatus(void); /* draw the bar */ 117extern void drawstatus(void); /* draw the bar */
@@ -125,18 +123,19 @@ extern unsigned int textw(const char *text); /* return the width of text in px*/
125extern void grabkeys(void); /* grab all keys defined in config.h */ 123extern void grabkeys(void); /* grab all keys defined in config.h */
126 124
127/* layout.c */ 125/* layout.c */
128extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ 126extern void focusnext(Arg arg); /* focuses next visible client, arg is ignored */
129extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ 127extern void focusprev(Arg arg); /* focuses previous visible client, arg is ignored */
130extern void incnmaster(Arg *arg); /* increments nmaster with arg's index value */ 128extern void incmasterw(Arg arg); /* increments the master width with arg's index value */
129extern void incnmaster(Arg arg); /* increments nmaster with arg's index value */
131extern void initlayouts(void); /* initialize layout array */ 130extern void initlayouts(void); /* initialize layout array */
132extern Client *nexttiled(Client *c); /* returns tiled successor of c */ 131extern Client *nexttiled(Client *c); /* returns tiled successor of c */
133extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */
134extern void restack(void); /* restores z layers of all clients */ 132extern void restack(void); /* restores z layers of all clients */
135extern void setlayout(Arg *arg); /* sets layout, -1 toggles */ 133extern void setlayout(Arg arg); /* sets layout, -1 toggles */
134extern void togglemax(Arg arg); /* toggles maximization of versatile client */
136extern void versatile(void); /* arranges all windows versatile */ 135extern void versatile(void); /* arranges all windows versatile */
137 136
138/* main.c */ 137/* main.c */
139extern void quit(Arg *arg); /* quit dwm nicely */ 138extern void quit(Arg arg); /* quit dwm nicely */
140extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ 139extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */
141extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ 140extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
142 141
@@ -144,13 +143,14 @@ extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
144extern void compileregs(void); /* initialize regexps of rules defined in config.h */ 143extern void compileregs(void); /* initialize regexps of rules defined in config.h */
145extern Bool isvisible(Client *c); /* returns True if client is visible */ 144extern Bool isvisible(Client *c); /* returns True if client is visible */
146extern void settags(Client *c, Client *trans); /* sets tags of c */ 145extern void settags(Client *c, Client *trans); /* sets tags of c */
147extern void tag(Arg *arg); /* tags c with arg's index */ 146extern void tag(Arg arg); /* tags c with arg's index */
148extern void toggletag(Arg *arg); /* toggles c tags with arg's index */ 147extern void toggletag(Arg arg); /* toggles c tags with arg's index */
149extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ 148extern void toggleview(Arg arg); /* toggles the tag with arg's index (in)visible */
150extern void view(Arg *arg); /* views the tag with arg's index */ 149extern void view(Arg arg); /* views the tag with arg's index */
150extern void zoom(Arg arg); /* zooms the focused client to master area, arg is ignored */
151 151
152/* util.c */ 152/* util.c */
153extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ 153extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */
154extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ 154extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */
155extern void spawn(Arg *arg); /* forks a new subprocess with arg's cmd */ 155extern void spawn(Arg arg); /* forks a new subprocess with arg's cmd */
156 156