diff options
| -rw-r--r-- | dwm.h | 23 |
1 files changed, 11 insertions, 12 deletions
| @@ -105,15 +105,14 @@ extern void killclient(const char *arg); /* kill c nicely */ | |||
| 105 | extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ | 105 | extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
| 106 | extern void resize(Client *c, int x, int y, | 106 | extern 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*/ |
| 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 | extern void updatesizehints(Client *c); /* update the size hint variables of c */ | 109 | extern void updatesizehints(Client *c); /* update the size hint variables of c */ |
| 110 | extern void updatetitle(Client *c); /* update the name of c */ | 110 | extern void updatetitle(Client *c); /* update the name of c */ |
| 111 | extern void unmanage(Client *c); /* destroy c */ | 111 | extern void unmanage(Client *c); /* destroy c */ |
| 112 | 112 | ||
| 113 | /* draw.c */ | 113 | /* draw.c */ |
| 114 | extern void drawstatus(void); /* draw the bar */ | 114 | extern void drawstatus(void); /* draw the bar */ |
| 115 | extern void drawtext(const char *text, | 115 | extern void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */ |
| 116 | unsigned long col[ColLast]); /* draw text */ | ||
| 117 | extern unsigned int textw(const char *text); /* return the width of text in px*/ | 116 | extern 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 */ |
| 123 | extern void focusnext(const char *arg); /* focuses next visible client, arg is ignored */ | 122 | extern void focusnext(const char *arg); /* focuses next visible client, arg is ignored */ |
| 124 | extern void focusprev(const char *arg); /* focuses previous visible client, arg is ignored */ | 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 */ | 124 | 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 */ | 125 | extern void incnmaster(const char *arg); /* increments nmaster with arg's index value */ |
| 127 | extern void initlayouts(void); /* initialize layout array */ | 126 | extern void initlayouts(void); /* initialize layout array */ |
| 128 | extern Client *nexttiled(Client *c); /* returns tiled successor of c */ | 127 | extern Client *nexttiled(Client *c); /* returns tiled successor of c */ |
| 129 | extern void restack(void); /* restores z layers of all clients */ | 128 | extern void restack(void); /* restores z layers of all clients */ |
| 130 | extern void setlayout(const char *arg); /* sets layout, -1 toggles */ | 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 | extern void versatile(void); /* arranges all windows versatile */ | 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 | /* main.c */ | 134 | /* main.c */ |
| 135 | extern void quit(const char *arg); /* quit dwm nicely */ | 135 | extern void quit(const char *arg); /* quit dwm nicely */ |
| 136 | extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ | 136 | extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ |
| 137 | extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ | 137 | extern 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 */ | |||
| 140 | extern void compileregs(void); /* initialize regexps of rules defined in config.h */ | 140 | extern void compileregs(void); /* initialize regexps of rules defined in config.h */ |
| 141 | extern Bool isvisible(Client *c); /* returns True if client is visible */ | 141 | extern Bool isvisible(Client *c); /* returns True if client is visible */ |
| 142 | extern void settags(Client *c, Client *trans); /* sets tags of c */ | 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 | extern void toggletag(const char *arg); /* toggles c tags with arg's index */ | 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 */ | 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 */ | 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 */ | ||
| 148 | 147 | ||
| 149 | /* util.c */ | 148 | /* util.c */ |
| 150 | extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ | 149 | extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ |
| 151 | extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ | 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 | ||
