summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.h106
1 files changed, 53 insertions, 53 deletions
diff --git a/dwm.h b/dwm.h
index d795c84..56b8433 100644
--- a/dwm.h
+++ b/dwm.h
@@ -78,72 +78,72 @@ typedef struct {
78 void (*arrange)(void); 78 void (*arrange)(void);
79} Layout; 79} Layout;
80 80
81extern const char *tags[]; /* all tags */ 81extern const char *tags[]; /* all tags */
82extern char stext[256]; /* status text */ 82char stext[256]; /* status text */
83extern int screen, sx, sy, sw, sh; /* screen geometry */ 83int screen, sx, sy, sw, sh; /* screen geometry */
84extern int wax, way, wah, waw; /* windowarea geometry */ 84int wax, way, wah, waw; /* windowarea geometry */
85extern unsigned int bh, blw; /* bar height, bar layout label width */ 85unsigned int bh, blw; /* bar height, bar layout label width */
86extern unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ 86unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */
87extern void (*handler[LASTEvent])(XEvent *); /* event handler */ 87void (*handler[LASTEvent])(XEvent *); /* event handler */
88extern Atom wmatom[WMLast], netatom[NetLast]; 88Atom wmatom[WMLast], netatom[NetLast];
89extern Bool selscreen, *seltag; /* seltag is array of Bool */ 89Bool selscreen, *seltag; /* seltag is array of Bool */
90extern Client *clients, *sel, *stack; /* global client list and stack */ 90Client *clients, *sel, *stack; /* global client list and stack */
91extern Cursor cursor[CurLast]; 91Cursor cursor[CurLast];
92extern DC dc; /* global draw context */ 92DC dc; /* global draw context */
93extern Display *dpy; 93Display *dpy;
94extern Layout *lt; 94Layout *lt;
95extern Window root, barwin; 95Window root, barwin;
96 96
97/* client.c */ 97/* client.c */
98extern void attach(Client *c); /* attaches c to global client list */ 98void attach(Client *c); /* attaches c to global client list */
99extern void configure(Client *c); /* send synthetic configure event */ 99void configure(Client *c); /* send synthetic configure event */
100extern void detach(Client *c); /* detaches c from global client list */ 100void detach(Client *c); /* detaches c from global client list */
101extern void focus(Client *c); /* focus c, c may be NULL */ 101void focus(Client *c); /* focus c, c may be NULL */
102extern void killclient(const char *arg); /* kill c nicely */ 102void killclient(const char *arg); /* kill c nicely */
103extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ 103void manage(Window w, XWindowAttributes *wa); /* manage new client */
104extern void resize(Client *c, int x, int y, 104void resize(Client *c, int x, int y,
105 int w, int h, Bool sizehints); /* resize with given coordinates c*/ 105 int w, int h, Bool sizehints); /* resize with given coordinates c*/
106extern void togglefloating(const char *arg); /* toggles focused client between floating/tiled state */ 106void togglefloating(const char *arg); /* toggles focused client between floating/tiled state */
107extern void updatesizehints(Client *c); /* update the size hint variables of c */ 107void updatesizehints(Client *c); /* update the size hint variables of c */
108extern void updatetitle(Client *c); /* update the name of c */ 108void updatetitle(Client *c); /* update the name of c */
109extern void unmanage(Client *c); /* destroy c */ 109void unmanage(Client *c); /* destroy c */
110 110
111/* draw.c */ 111/* draw.c */
112extern void drawstatus(void); /* draw the bar */ 112void drawstatus(void); /* draw the bar */
113extern void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */ 113void drawtext(const char *text, unsigned long col[ColLast]); /* draw text */
114extern unsigned int textw(const char *text); /* return the width of text in px*/ 114unsigned int textw(const char *text); /* return the width of text in px*/
115 115
116/* event.c */ 116/* event.c */
117extern void grabkeys(void); /* grab all keys defined in config.h */ 117void grabkeys(void); /* grab all keys defined in config.h */
118 118
119/* layout.c */ 119/* layout.c */
120extern void floating(void); /* arranges all windows floating */ 120void floating(void); /* arranges all windows floating */
121extern void focusclient(const char *arg); /* focuses next(1)/previous(-1) visible client */ 121void focusclient(const char *arg); /* focuses next(1)/previous(-1) visible client */
122extern void incmasterw(const char *arg); /* increments the master width with arg's index value */ 122void incmasterw(const char *arg); /* increments the master width with arg's index value */
123extern void incnmaster(const char *arg); /* increments nmaster with arg's index value */ 123void incnmaster(const char *arg); /* increments nmaster with arg's index value */
124extern void initlayouts(void); /* initialize layout array */ 124void initlayouts(void); /* initialize layout array */
125extern Client *nexttiled(Client *c); /* returns tiled successor of c */ 125Client *nexttiled(Client *c); /* returns tiled successor of c */
126extern void restack(void); /* restores z layers of all clients */ 126void restack(void); /* restores z layers of all clients */
127extern void setlayout(const char *arg); /* sets layout, -1 toggles */ 127void setlayout(const char *arg); /* sets layout, -1 toggles */
128extern void togglemax(const char *arg); /* toggles maximization of floating client */ 128void togglemax(const char *arg); /* toggles maximization of floating client */
129extern void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */ 129void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */
130 130
131/* main.c */ 131/* main.c */
132extern void quit(const char *arg); /* quit dwm nicely */ 132void quit(const char *arg); /* quit dwm nicely */
133extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ 133void sendevent(Window w, Atom a, long value); /* send synthetic event to w */
134extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ 134int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */
135 135
136/* tag.c */ 136/* tag.c */
137extern void compileregs(void); /* initialize regexps of rules defined in config.h */ 137void compileregs(void); /* initialize regexps of rules defined in config.h */
138extern Bool isvisible(Client *c); /* returns True if client is visible */ 138Bool isvisible(Client *c); /* returns True if client is visible */
139extern void settags(Client *c, Client *trans); /* sets tags of c */ 139void settags(Client *c, Client *trans); /* sets tags of c */
140extern void tag(const char *arg); /* tags c with arg's index */ 140void tag(const char *arg); /* tags c with arg's index */
141extern void toggletag(const char *arg); /* toggles c tags with arg's index */ 141void toggletag(const char *arg); /* toggles c tags with arg's index */
142extern void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */ 142void toggleview(const char *arg); /* toggles the tag with arg's index (in)visible */
143extern void view(const char *arg); /* views the tag with arg's index */ 143void view(const char *arg); /* views the tag with arg's index */
144 144
145/* util.c */ 145/* util.c */
146extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ 146void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */
147extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ 147void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */
148extern void spawn(const char *arg); /* forks a new subprocess with arg's cmd */ 148void spawn(const char *arg); /* forks a new subprocess with arg's cmd */
149 149