diff options
Diffstat (limited to 'dwm.h')
| -rw-r--r-- | dwm.h | 36 |
1 files changed, 15 insertions, 21 deletions
| @@ -101,7 +101,6 @@ extern Window root, barwin; | |||
| 101 | /* client.c */ | 101 | /* client.c */ |
| 102 | extern void configure(Client *c); /* send synthetic configure event */ | 102 | extern void configure(Client *c); /* send synthetic configure event */ |
| 103 | extern void focus(Client *c); /* focus c, c may be NULL */ | 103 | extern void focus(Client *c); /* focus c, c may be NULL */ |
| 104 | extern Bool isprotodel(Client *c); /* returns True if c->win supports wmatom[WMDelete] */ | ||
| 105 | extern void killclient(Arg *arg); /* kill c nicely */ | 104 | extern void killclient(Arg *arg); /* kill c nicely */ |
| 106 | extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ | 105 | extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
| 107 | extern void resize(Client *c, int x, int y, | 106 | extern void resize(Client *c, int x, int y, |
| @@ -125,36 +124,31 @@ extern void quit(Arg *arg); /* quit dwm nicely */ | |||
| 125 | extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ | 124 | extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ |
| 126 | extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ | 125 | extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
| 127 | 126 | ||
| 128 | /* tag.c */ | 127 | /* manage.c */ |
| 129 | extern void compileregexps(void); /* initialize regexps of rules defined in config.h */ | ||
| 130 | extern void settags(Client *c, Client *trans); /* sets tags of c */ | ||
| 131 | extern void tag(Arg *arg); /* tags c with arg's index */ | ||
| 132 | extern void toggletag(Arg *arg); /* toggles c tags with arg's index */ | ||
| 133 | |||
| 134 | /* tile.c */ | ||
| 135 | extern void dotile(void); /* arranges all windows tiled */ | ||
| 136 | extern void incnmaster(Arg *arg); /* increments nmaster with arg's index value */ | ||
| 137 | extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */ | ||
| 138 | extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */ | ||
| 139 | |||
| 140 | /* util.c */ | ||
| 141 | extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ | ||
| 142 | extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ | ||
| 143 | extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */ | ||
| 144 | |||
| 145 | /* view.c */ | ||
| 146 | extern void attach(Client *c); /* attaches c to global client list */ | 128 | extern void attach(Client *c); /* attaches c to global client list */ |
| 147 | extern void attachstack(Client *c); /* attaches client to stack */ | 129 | extern void attachstack(Client *c); /* attaches client to stack */ |
| 148 | extern void dofloat(void); /* arranges all windows floating */ | 130 | extern void compileregexps(void); /* initialize regexps of rules defined in config.h */ |
| 149 | extern void detach(Client *c); /* detaches c from global client list */ | 131 | extern void detach(Client *c); /* detaches c from global client list */ |
| 150 | extern void detachstack(Client *c); /* detaches client from stack */ | 132 | extern void detachstack(Client *c); /* detaches client from stack */ |
| 133 | extern void dofloat(void); /* arranges all windows floating */ | ||
| 134 | extern void dotile(void); /* arranges all windows tiled */ | ||
| 151 | extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ | 135 | extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ |
| 152 | extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ | 136 | extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
| 153 | extern Client *getclient(Window w); /* return client of w */ | 137 | extern Client *getclient(Window w); /* return client of w */ |
| 138 | extern void incnmaster(Arg *arg); /* increments nmaster with arg's index value */ | ||
| 154 | extern Bool isvisible(Client *c); /* returns True if client is visible */ | 139 | extern Bool isvisible(Client *c); /* returns True if client is visible */ |
| 155 | extern Client *nextmanaged(Client *c); /* returns managed successor of c */ | 140 | extern void resizemaster(Arg *arg); /* resizes the master percent with arg's index value */ |
| 156 | extern void restack(void); /* restores z layers of all clients */ | 141 | extern void restack(void); /* restores z layers of all clients */ |
| 142 | extern void settags(Client *c, Client *trans); /* sets tags of c */ | ||
| 143 | extern void tag(Arg *arg); /* tags c with arg's index */ | ||
| 157 | extern void togglefloat(Arg *arg); /* toggles focusesd client between floating/non-floating state */ | 144 | extern void togglefloat(Arg *arg); /* toggles focusesd client between floating/non-floating state */ |
| 158 | extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ | 145 | extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |
| 146 | extern void toggletag(Arg *arg); /* toggles c tags with arg's index */ | ||
| 159 | extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ | 147 | extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ |
| 160 | extern void view(Arg *arg); /* views the tag with arg's index */ | 148 | extern void view(Arg *arg); /* views the tag with arg's index */ |
| 149 | extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */ | ||
| 150 | |||
| 151 | /* util.c */ | ||
| 152 | extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ | ||
| 153 | extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ | ||
| 154 | extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */ | ||
