made dwm.h more tidy (thx Jukka for the zoom() hint)
12d5a26f
1 file(s) · +11 −12
| 105 | 105 | extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
|
| 106 | 106 | extern void resize(Client *c, int x, int y, |
|
| 107 | 107 | int w, int h, Bool sizehints); /* resize with given coordinates c*/ |
|
| 108 | - | extern void toggleversatile(const char *arg); /* toggles focused client between versatile/and non-versatile state */ |
|
| 108 | + | extern void toggleversatile(const char *arg); /* toggles focused client between versatile/and non-versatile state */ |
|
| 109 | 109 | extern void updatesizehints(Client *c); /* update the size hint variables of c */ |
|
| 110 | 110 | extern void updatetitle(Client *c); /* update the name of c */ |
|
| 111 | 111 | extern void unmanage(Client *c); /* destroy c */ |
|
| 112 | 112 | ||
| 113 | 113 | /* draw.c */ |
|
| 114 | 114 | extern void drawstatus(void); /* draw the bar */ |
|
| 115 | - | extern void drawtext(const char *text, |
|
| 116 | - | unsigned long col[ColLast]); /* draw text */ |
|
| 115 | + | extern void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */ |
|
| 117 | 116 | extern unsigned int textw(const char *text); /* return the width of text in px*/ |
|
| 118 | 117 | ||
| 119 | 118 | /* event.c */ |
|
| 122 | 121 | /* layout.c */ |
|
| 123 | 122 | extern void focusnext(const char *arg); /* focuses next visible client, arg is ignored */ |
|
| 124 | 123 | extern void focusprev(const char *arg); /* focuses previous visible client, arg is ignored */ |
|
| 125 | - | extern void incmasterw(const char *arg); /* increments the master width with arg's index value */ |
|
| 126 | - | extern void incnmaster(const char *arg); /* increments nmaster with arg's index value */ |
|
| 124 | + | extern void incmasterw(const char *arg); /* increments the master width with arg's index value */ |
|
| 125 | + | extern void incnmaster(const char *arg); /* increments nmaster with arg's index value */ |
|
| 127 | 126 | extern void initlayouts(void); /* initialize layout array */ |
|
| 128 | 127 | extern Client *nexttiled(Client *c); /* returns tiled successor of c */ |
|
| 129 | 128 | extern void restack(void); /* restores z layers of all clients */ |
|
| 130 | 129 | extern void setlayout(const char *arg); /* sets layout, -1 toggles */ |
|
| 131 | - | extern void togglemax(const char *arg); /* toggles maximization of versatile client */ |
|
| 130 | + | extern void togglemax(const char *arg); /* toggles maximization of versatile client */ |
|
| 132 | 131 | extern void versatile(void); /* arranges all windows versatile */ |
|
| 132 | + | extern void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */ |
|
| 133 | 133 | ||
| 134 | 134 | /* main.c */ |
|
| 135 | - | extern void quit(const char *arg); /* quit dwm nicely */ |
|
| 135 | + | extern void quit(const char *arg); /* quit dwm nicely */ |
|
| 136 | 136 | extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ |
|
| 137 | 137 | extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
|
| 138 | 138 | ||
| 140 | 140 | extern void compileregs(void); /* initialize regexps of rules defined in config.h */ |
|
| 141 | 141 | extern Bool isvisible(Client *c); /* returns True if client is visible */ |
|
| 142 | 142 | extern void settags(Client *c, Client *trans); /* sets tags of c */ |
|
| 143 | - | extern void tag(const char *arg); /* tags c with arg's index */ |
|
| 143 | + | extern void tag(const char *arg); /* tags c with arg's index */ |
|
| 144 | 144 | extern void toggletag(const char *arg); /* toggles c tags with arg's index */ |
|
| 145 | - | extern void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ |
|
| 146 | - | extern void view(const char *arg); /* views the tag with arg's index */ |
|
| 147 | - | extern void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */ |
|
| 145 | + | extern void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ |
|
| 146 | + | extern void view(const char *arg); /* views the tag with arg's index */ |
|
| 148 | 147 | ||
| 149 | 148 | /* util.c */ |
|
| 150 | 149 | extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ |
|
| 151 | 150 | extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ |
|
| 152 | - | extern void spawn(const char *arg); /* forks a new subprocess with arg's cmd */ |
|
| 151 | + | extern void spawn(const char *arg); /* forks a new subprocess with arg's cmd */ |
|
| 153 | 152 | ||