summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-02-22 15:06:56 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-02-22 15:06:56 +0100
commit12d5a26fd279cc2370954929dedf88d0ab205a16 (patch)
tree8049e0e7a5a37ec24b85b46d67515499b7f2c289
parentoops (diff)
downloaddwm-12d5a26fd279cc2370954929dedf88d0ab205a16.tar.gz
dwm-12d5a26fd279cc2370954929dedf88d0ab205a16.zip
made dwm.h more tidy (thx Jukka for the zoom() hint)
-rw-r--r--dwm.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/dwm.h b/dwm.h
index f2ae53f..9e04a81 100644
--- a/dwm.h
+++ b/dwm.h
@@ -105,15 +105,14 @@ extern void killclient(const char *arg); /* kill c nicely */
105extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ 105extern void manage(Window w, XWindowAttributes *wa); /* manage new client */
106extern void resize(Client *c, int x, int y, 106extern void resize(Client *c, int x, int y,
107 int w, int h, Bool sizehints); /* resize with given coordinates c*/ 107 int w, int h, Bool sizehints); /* resize with given coordinates c*/
108extern void toggleversatile(const char *arg); /* toggles focused client between versatile/and non-versatile state */ 108extern void toggleversatile(const char *arg); /* toggles focused client between versatile/and non-versatile state */
109extern void updatesizehints(Client *c); /* update the size hint variables of c */ 109extern void updatesizehints(Client *c); /* update the size hint variables of c */
110extern void updatetitle(Client *c); /* update the name of c */ 110extern void updatetitle(Client *c); /* update the name of c */
111extern void unmanage(Client *c); /* destroy c */ 111extern void unmanage(Client *c); /* destroy c */
112 112
113/* draw.c */ 113/* draw.c */
114extern void drawstatus(void); /* draw the bar */ 114extern void drawstatus(void); /* draw the bar */
115extern void drawtext(const char *text, 115extern void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */
116 unsigned long col[ColLast]); /* draw text */
117extern unsigned int textw(const char *text); /* return the width of text in px*/ 116extern unsigned int textw(const char *text); /* return the width of text in px*/
118 117
119/* event.c */ 118/* event.c */
@@ -122,17 +121,18 @@ extern void grabkeys(void); /* grab all keys defined in config.h */
122/* layout.c */ 121/* layout.c */
123extern void focusnext(const char *arg); /* focuses next visible client, arg is ignored */ 122extern void focusnext(const char *arg); /* focuses next visible client, arg is ignored */
124extern void focusprev(const char *arg); /* focuses previous visible client, arg is ignored */ 123extern void focusprev(const char *arg); /* focuses previous visible client, arg is ignored */
125extern void incmasterw(const char *arg); /* increments the master width with arg's index value */ 124extern void incmasterw(const char *arg); /* increments the master width with arg's index value */
126extern void incnmaster(const char *arg); /* increments nmaster with arg's index value */ 125extern void incnmaster(const char *arg); /* increments nmaster with arg's index value */
127extern void initlayouts(void); /* initialize layout array */ 126extern void initlayouts(void); /* initialize layout array */
128extern Client *nexttiled(Client *c); /* returns tiled successor of c */ 127extern Client *nexttiled(Client *c); /* returns tiled successor of c */
129extern void restack(void); /* restores z layers of all clients */ 128extern void restack(void); /* restores z layers of all clients */
130extern void setlayout(const char *arg); /* sets layout, -1 toggles */ 129extern void setlayout(const char *arg); /* sets layout, -1 toggles */
131extern void togglemax(const char *arg); /* toggles maximization of versatile client */ 130extern void togglemax(const char *arg); /* toggles maximization of versatile client */
132extern void versatile(void); /* arranges all windows versatile */ 131extern void versatile(void); /* arranges all windows versatile */
132extern void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */
133 133
134/* main.c */ 134/* main.c */
135extern void quit(const char *arg); /* quit dwm nicely */ 135extern void quit(const char *arg); /* quit dwm nicely */
136extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ 136extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */
137extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ 137extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
138 138
@@ -140,14 +140,13 @@ extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
140extern void compileregs(void); /* initialize regexps of rules defined in config.h */ 140extern void compileregs(void); /* initialize regexps of rules defined in config.h */
141extern Bool isvisible(Client *c); /* returns True if client is visible */ 141extern Bool isvisible(Client *c); /* returns True if client is visible */
142extern void settags(Client *c, Client *trans); /* sets tags of c */ 142extern void settags(Client *c, Client *trans); /* sets tags of c */
143extern void tag(const char *arg); /* tags c with arg's index */ 143extern void tag(const char *arg); /* tags c with arg's index */
144extern void toggletag(const char *arg); /* toggles c tags with arg's index */ 144extern void toggletag(const char *arg); /* toggles c tags with arg's index */
145extern void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ 145extern void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */
146extern void view(const char *arg); /* views the tag with arg's index */ 146extern void view(const char *arg); /* views the tag with arg's index */
147extern void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */
148 147
149/* util.c */ 148/* util.c */
150extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ 149extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */
151extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ 150extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */
152extern void spawn(const char *arg); /* forks a new subprocess with arg's cmd */ 151extern void spawn(const char *arg); /* forks a new subprocess with arg's cmd */
153 152