diff options
| author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-15 16:30:50 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-15 16:30:50 +0200 |
| commit | dba23062bad40afb1a90f60b6897cf9e1ca5035b (patch) | |
| tree | a2823b36177e027cf3aa82f764c37cfc6eea4503 /dwm.h | |
| parent | sanitized names (diff) | |
| download | dwm-dba23062bad40afb1a90f60b6897cf9e1ca5035b.tar.gz dwm-dba23062bad40afb1a90f60b6897cf9e1ca5035b.zip | |
rearranged several stuff
Diffstat (limited to '')
| -rw-r--r-- | dwm.h | 36 |
1 files changed, 22 insertions, 14 deletions
| @@ -66,7 +66,7 @@ struct Client { | |||
| 66 | int grav; | 66 | int grav; |
| 67 | unsigned int border; | 67 | unsigned int border; |
| 68 | long flags; | 68 | long flags; |
| 69 | Bool floating; | 69 | Bool dofloat; |
| 70 | Window win; | 70 | Window win; |
| 71 | Window title; | 71 | Window title; |
| 72 | Client *next; | 72 | Client *next; |
| @@ -77,7 +77,7 @@ struct Rule { | |||
| 77 | const char *class; | 77 | const char *class; |
| 78 | const char *instance; | 78 | const char *instance; |
| 79 | char *tags[TLast]; | 79 | char *tags[TLast]; |
| 80 | Bool floating; | 80 | Bool dofloat; |
| 81 | }; | 81 | }; |
| 82 | 82 | ||
| 83 | struct Key { | 83 | struct Key { |
| @@ -103,6 +103,7 @@ extern DC dc; | |||
| 103 | extern Client *clients, *sel; | 103 | extern Client *clients, *sel; |
| 104 | 104 | ||
| 105 | /* client.c */ | 105 | /* client.c */ |
| 106 | extern void ban(Client *c); | ||
| 106 | extern void manage(Window w, XWindowAttributes *wa); | 107 | extern void manage(Window w, XWindowAttributes *wa); |
| 107 | extern void unmanage(Client *c); | 108 | extern void unmanage(Client *c); |
| 108 | extern Client *getclient(Window w); | 109 | extern Client *getclient(Window w); |
| @@ -110,14 +111,18 @@ extern void focus(Client *c); | |||
| 110 | extern void settitle(Client *c); | 111 | extern void settitle(Client *c); |
| 111 | extern void resize(Client *c, Bool inc); | 112 | extern void resize(Client *c, Bool inc); |
| 112 | extern void setsize(Client *c); | 113 | extern void setsize(Client *c); |
| 113 | extern Client *gettitle(Window w); | 114 | extern Client *getctitle(Window w); |
| 114 | extern void higher(Client *c); | 115 | extern void higher(Client *c); |
| 115 | extern void lower(Client *c); | 116 | extern void lower(Client *c); |
| 116 | extern void gravitate(Client *c, Bool invert); | 117 | extern void gravitate(Client *c, Bool invert); |
| 117 | extern void ban(Client *c); | 118 | extern void zoom(Arg *arg); |
| 118 | extern Client *getnext(Client *c); | 119 | extern void maximize(Arg *arg); |
| 120 | extern void focusprev(Arg *arg); | ||
| 121 | extern void focusnext(Arg *arg); | ||
| 122 | extern void killclient(Arg *arg); | ||
| 119 | 123 | ||
| 120 | /* draw.c */ | 124 | /* draw.c */ |
| 125 | extern void drawall(); | ||
| 121 | extern void drawstatus(); | 126 | extern void drawstatus(); |
| 122 | extern void drawtitle(Client *c); | 127 | extern void drawtitle(Client *c); |
| 123 | extern void drawtext(const char *text, Bool invert, Bool border); | 128 | extern void drawtext(const char *text, Bool invert, Bool border); |
| @@ -127,22 +132,25 @@ extern unsigned int textnw(char *text, unsigned int len); | |||
| 127 | extern unsigned int textw(char *text); | 132 | extern unsigned int textw(char *text); |
| 128 | extern unsigned int texth(void); | 133 | extern unsigned int texth(void); |
| 129 | 134 | ||
| 130 | /* key.c */ | 135 | /* event.c */ |
| 131 | extern void grabkeys(); | 136 | extern void grabkeys(); |
| 132 | extern void keypress(XEvent *e); | ||
| 133 | 137 | ||
| 134 | /* main.c */ | 138 | /* main.c */ |
| 135 | extern int xerror(Display *dsply, XErrorEvent *e); | ||
| 136 | extern void sendevent(Window w, Atom a, long value); | ||
| 137 | extern int proto(Window w); | ||
| 138 | extern void quit(Arg *arg); | 139 | extern void quit(Arg *arg); |
| 140 | extern int xerror(Display *dsply, XErrorEvent *ee); | ||
| 141 | extern void sendevent(Window w, Atom a, long value); | ||
| 142 | extern int getproto(Window w); | ||
| 139 | 143 | ||
| 140 | /* screen.c */ | 144 | /* tag.c */ |
| 141 | extern void floating(Arg *arg); | 145 | extern Client *getnext(Client *c); |
| 142 | extern void tiling(Arg *arg); | 146 | extern void settags(Client *c); |
| 147 | extern void dofloat(Arg *arg); | ||
| 148 | extern void dotile(Arg *arg); | ||
| 143 | extern void view(Arg *arg); | 149 | extern void view(Arg *arg); |
| 150 | extern void appendtag(Arg *arg); | ||
| 151 | extern void replacetag(Arg *arg); | ||
| 144 | 152 | ||
| 145 | /* util.c */ | 153 | /* util.c */ |
| 146 | extern void error(const char *errstr, ...); | 154 | extern void eprint(const char *errstr, ...); |
| 147 | extern void *emallocz(unsigned int size); | 155 | extern void *emallocz(unsigned int size); |
| 148 | extern void spawn(Arg *arg); | 156 | extern void spawn(Arg *arg); |
