author | Anselm R. Garbe <arg@10kloc.org> |
Tue, 12 Sep 2006 08:14:22 +0200 | |
changeset 457 | e97ad13f04dc |
parent 456 | d11d739ad9df |
child 459 | 3c3f429dca99 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2 |
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> |
|
3 |
* See LICENSE file for license details. |
|
457
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
4 |
* |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
5 |
* dynamic window manager is designed like any other X client as well. It is |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
6 |
* driven through handling X events. In contrast to other X clients, a window |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
7 |
* manager like dwm selects for SubstructureRedirectMask on the root window, to |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
8 |
* receive events about child window appearance and disappearance. Only one X |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
9 |
* connection at a time is allowed to select for this event mask by any X |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
10 |
* server, thus only one window manager instance can be executed at a time. |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
11 |
* Any attempt to select for SubstructureRedirectMask by any connection after |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
12 |
* another connection already selected for those events, will result in an |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
13 |
* error generated by the server. Such errors are reported through calling the |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
14 |
* current X error handler. |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
15 |
* |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
16 |
* Calls to pop an X event from the event queue of the X connection are |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
17 |
* blocking. Due the fact, that dwm reads status text from standard input, a |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
18 |
* select-driven main loop has been implemented which selects for reads on the |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
19 |
* X connection and STDIN_FILENO to handle all data smoothly and without |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
20 |
* busy-loop quirks.. The event handlers of dwm are organized in an array |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
21 |
* which is accessed whenever a new event has been popped. This allows event |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
22 |
* dispatching in O(1) time. |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
23 |
* |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
24 |
* Each child window of the root window is called a client in window manager |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
25 |
* terminology, except windows which have set the override_redirect flag. |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
26 |
* Clients are organized in a global doubly-linked client list, the focus |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
27 |
* history is remembered through a global stack list. Each client contains an |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
28 |
* array of Bools of the same size as the global tags array to indicate the |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
29 |
* tags of a client. There are no other data structures to organize the clients |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
30 |
* in tag lists, because a single global list is most simple. All clients which |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
31 |
* have at least one tag enabled of the current tags viewed, will be visible on |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
32 |
* the screen, all other clients are banned to the x-location 2 * screen width. |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
33 |
* This avoids having additional layers of workspace handling. |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
34 |
* |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
35 |
* For each client dwm creates a small title window which is resized whenever |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
36 |
* the WM_NAME or _NET_WM_NAME properties are updated. |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
37 |
* |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
38 |
* Keys and tagging rules are organized as arrays as well and defined in the |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
39 |
* config.h file. These arrays are kept static in event.o and tag.o |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
40 |
* respectively, because no other part of dwm needs access to them. |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
41 |
* |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
42 |
* The current mode is represented by the arrange function pointer which wether |
e97ad13f04dc
added a general comment to dwm.h how dwm is basically organized
Anselm R. Garbe <arg@10kloc.org>
parents:
456
diff
changeset
|
43 |
* points to dofloat or dotile. |
0 | 44 |
*/ |
45 |
||
166
e0535db04dfe
removed the CONFIG variable from config.mk, renamed config.h into config.default.h, after first clone/extract one needs to copy config.default.h to config.h, that is easier than always heavy typing make CONFIG=blafasel
arg@10ksloc.org
parents:
164
diff
changeset
|
46 |
#include "config.h" |
32 | 47 |
#include <X11/Xlib.h> |
48 |
||
143 | 49 |
/* mask shorthands, used in event.c and client.c */ |
150
a26b32ff8911
cleaned config.*h to prevent some confusion
arg@10ksloc.org
parents:
148
diff
changeset
|
50 |
#define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) |
a26b32ff8911
cleaned config.*h to prevent some confusion
arg@10ksloc.org
parents:
148
diff
changeset
|
51 |
#define MOUSEMASK (BUTTONMASK | PointerMotionMask) |
157
93012e947eae
renamed WM_PROTOCOL_DELWIN into PROTODELWIN
arg@10ksloc.org
parents:
150
diff
changeset
|
52 |
#define PROTODELWIN 1 |
143 | 53 |
|
452 | 54 |
enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ |
55 |
enum { WMProtocols, WMDelete, WMLast }; /* default atoms */ |
|
56 |
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
|
57 |
enum { ColFG, ColBG, ColLast }; /* color */ |
|
58 |
||
59 |
typedef enum { |
|
60 |
TopLeft, TopRight, BotLeft, BotRight |
|
61 |
} Corner; /* window corners */ |
|
62 |
||
333
827f8f6c9e97
separated setup stuff into main.c:setup() - this makes main() more readable
Anselm R. Garbe <arg@10kloc.org>
parents:
327
diff
changeset
|
63 |
typedef union { |
189
523df4a3c1c4
using execl now, argv changed, using cmd and const char defs directly in the KEYS struct
arg@10ksloc.org
parents:
178
diff
changeset
|
64 |
const char *cmd; |
49
466591c2f967
implemented tagging a client
Anselm R. Garbe <garbeam@wmii.de>
parents:
46
diff
changeset
|
65 |
int i; |
452 | 66 |
} Arg; /* argument type */ |
99
a19556fe83b5
applied Sanders resize patch, fixed lower bug
arg@10ksloc.org
parents:
95
diff
changeset
|
67 |
|
333
827f8f6c9e97
separated setup stuff into main.c:setup() - this makes main() more readable
Anselm R. Garbe <arg@10kloc.org>
parents:
327
diff
changeset
|
68 |
typedef struct { |
32 | 69 |
int ascent; |
70 |
int descent; |
|
71 |
int height; |
|
84
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
72 |
XFontSet set; |
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
73 |
XFontStruct *xfont; |
333
827f8f6c9e97
separated setup stuff into main.c:setup() - this makes main() more readable
Anselm R. Garbe <arg@10kloc.org>
parents:
327
diff
changeset
|
74 |
} Fnt; |
32 | 75 |
|
452 | 76 |
typedef struct { |
32 | 77 |
int x, y, w, h; |
353
8a06efe5b563
new color stuff/new rendering stuff
Anselm R. Garbe <arg@10kloc.org>
parents:
352
diff
changeset
|
78 |
unsigned long norm[ColLast]; |
8a06efe5b563
new color stuff/new rendering stuff
Anselm R. Garbe <arg@10kloc.org>
parents:
352
diff
changeset
|
79 |
unsigned long sel[ColLast]; |
8a06efe5b563
new color stuff/new rendering stuff
Anselm R. Garbe <arg@10kloc.org>
parents:
352
diff
changeset
|
80 |
unsigned long status[ColLast]; |
84
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
81 |
Drawable drawable; |
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
82 |
Fnt font; |
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
83 |
GC gc; |
452 | 84 |
} DC; /* draw context */ |
32 | 85 |
|
333
827f8f6c9e97
separated setup stuff into main.c:setup() - this makes main() more readable
Anselm R. Garbe <arg@10kloc.org>
parents:
327
diff
changeset
|
86 |
typedef struct Client Client; |
0 | 87 |
struct Client { |
31 | 88 |
char name[256]; |
13
5cc5e55a132d
added protocol killing stuff
Anselm R. Garbe <garbeam@wmii.de>
parents:
10
diff
changeset
|
89 |
int proto; |
115
329fd7dae530
removed c->f{x,y,w,h} and c->t{x,y,w,h} in favor for the new rule handling remembering two kinds of geometries is unnecessary, removed the randomized (x,y) setting on dofloat startup, was kind too random und unpredictable
arg@10ksloc.org
parents:
114
diff
changeset
|
90 |
int x, y, w, h; |
453 | 91 |
int tx, ty, tw, th; /* title window geometry */ |
20 | 92 |
int basew, baseh, incw, inch, maxw, maxh, minw, minh; |
29 | 93 |
int grav; |
164
21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
arg@10ksloc.org
parents:
157
diff
changeset
|
94 |
long flags; |
381
b00cc483d13b
still something wrong with reorder()
Anselm R. Garbe <arg@10kloc.org>
parents:
378
diff
changeset
|
95 |
unsigned int border, weight; |
80
8125f908c80c
several additions in mouse handling ;)
Anselm R. Garbe <garbeam@wmii.de>
parents:
78
diff
changeset
|
96 |
Bool isfloat; |
178
e848966a1ac6
removed TLast tag enum, now tags is simple defined as char *[] array, the rest is calculated correctly, rules take an int array for the tags
arg@10ksloc.org
parents:
173
diff
changeset
|
97 |
Bool *tags; |
84
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
98 |
Client *next; |
127
1480e19f6377
using double-linked list in order to get correct prev focus handling
arg@10ksloc.org
parents:
125
diff
changeset
|
99 |
Client *prev; |
446
a2e587651c79
using a global stack for focus recovery on arrange() - seems to work great
Anselm R. Garbe <arg@10kloc.org>
parents:
431
diff
changeset
|
100 |
Client *snext; |
0 | 101 |
Window win; |
342 | 102 |
Window twin; |
0 | 103 |
}; |
104 |
||
452 | 105 |
extern const char *tags[]; /* all tags */ |
106 |
extern char stext[1024]; /* status text */ |
|
107 |
extern int bx, by, bw, bh, bmw; /* bar geometry, bar mode label width */ |
|
108 |
extern int mw, screen, sx, sy, sw, sh; /* screen geometry, master width */ |
|
454
ffb462fb7903
small change to comments, renamed two set* functions in client.c into update*
Anselm R. Garbe <arg@10kloc.org>
parents:
453
diff
changeset
|
109 |
extern unsigned int ntags, numlockmask; /* number of tags, dynamic lock mask */ |
452 | 110 |
extern void (*handler[LASTEvent])(XEvent *); /* event handler */ |
111 |
extern void (*arrange)(Arg *); /* arrange function, indicates mode */ |
|
84
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
112 |
extern Atom wmatom[WMLast], netatom[NetLast]; |
452 | 113 |
extern Bool running, issel, maximized, *seltag; /* seltag is array of Bool */ |
454
ffb462fb7903
small change to comments, renamed two set* functions in client.c into update*
Anselm R. Garbe <arg@10kloc.org>
parents:
453
diff
changeset
|
114 |
extern Client *clients, *sel, *stack; /* global cleint list and stack */ |
84
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
115 |
extern Cursor cursor[CurLast]; |
454
ffb462fb7903
small change to comments, renamed two set* functions in client.c into update*
Anselm R. Garbe <arg@10kloc.org>
parents:
453
diff
changeset
|
116 |
extern DC dc; /* global draw context */ |
84
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
117 |
extern Display *dpy; |
052fe7498930
ordered variables in structs and source files alphabetically
Anselm R. Garbe <garbeam@wmii.de>
parents:
80
diff
changeset
|
118 |
extern Window root, barwin; |
3
e969f3575b7a
several new changes, made gridmenu working
Anselm R. Garbe <garbeam@wmii.de>
parents:
2
diff
changeset
|
119 |
|
5 | 120 |
/* client.c */ |
454
ffb462fb7903
small change to comments, renamed two set* functions in client.c into update*
Anselm R. Garbe <arg@10kloc.org>
parents:
453
diff
changeset
|
121 |
extern void ban(Client *c); /* ban c from screen */ |
452 | 122 |
extern void focus(Client *c); /* focus c, c may be NULL */ |
123 |
extern Client *getclient(Window w); /* return client of w */ |
|
124 |
extern Client *getctitle(Window w); /* return client of title window */ |
|
125 |
extern void gravitate(Client *c, Bool invert); /* gravitate c */ |
|
126 |
extern void killclient(Arg *arg); /* kill c nicely */ |
|
127 |
extern void manage(Window w, XWindowAttributes *wa); /* manage new client */ |
|
128 |
extern void resize(Client *c, Bool sizehints, Corner sticky); /* resize c*/ |
|
454
ffb462fb7903
small change to comments, renamed two set* functions in client.c into update*
Anselm R. Garbe <arg@10kloc.org>
parents:
453
diff
changeset
|
129 |
extern void updatesize(Client *c); /* update the size structs of c */ |
ffb462fb7903
small change to comments, renamed two set* functions in client.c into update*
Anselm R. Garbe <arg@10kloc.org>
parents:
453
diff
changeset
|
130 |
extern void updatetitle(Client *c); /* update the name of c */ |
452 | 131 |
extern void togglemax(Arg *arg); /* (un)maximize c */ |
132 |
extern void unmanage(Client *c); /* destroy c */ |
|
13
5cc5e55a132d
added protocol killing stuff
Anselm R. Garbe <garbeam@wmii.de>
parents:
10
diff
changeset
|
133 |
|
33
e90449e03167
new stuff (some warning elimination)
Anselm R. Garbe <garbeam@wmii.de>
parents:
32
diff
changeset
|
134 |
/* draw.c */ |
452 | 135 |
extern void drawall(); /* draw all visible client titles and the bar */ |
136 |
extern void drawstatus(); /* draw the bar */ |
|
137 |
extern void drawtitle(Client *c); /* draw title of c */ |
|
138 |
extern unsigned long getcolor(const char *colstr); /* return color of colstr */ |
|
139 |
extern void setfont(const char *fontstr); /* set the font for DC */ |
|
456
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
140 |
extern unsigned int textw(const char *text); /* return the width of text in px*/ |
33
e90449e03167
new stuff (some warning elimination)
Anselm R. Garbe <garbeam@wmii.de>
parents:
32
diff
changeset
|
141 |
|
75 | 142 |
/* event.c */ |
452 | 143 |
extern void grabkeys(); /* grab all keys defined in config.h */ |
144 |
extern void procevent(); /* process pending X events */ |
|
18
1efa34c6e1b6
added mouse-based resizals
Anselm R. Garbe <garbeam@wmii.de>
parents:
16
diff
changeset
|
145 |
|
43 | 146 |
/* main.c */ |
452 | 147 |
extern int getproto(Window w); /* return protocol mask of WMProtocols property of w */ |
148 |
extern void quit(Arg *arg); /* quit dwm nicely */ |
|
149 |
extern void sendevent(Window w, Atom a, long value); /* send synthetic event to w */ |
|
150 |
extern int xerror(Display *dsply, XErrorEvent *ee); /* dwm's X error handler */ |
|
43 | 151 |
|
75 | 152 |
/* tag.c */ |
452 | 153 |
extern void initrregs(); /* initialize regexps of rules defined in config.h */ |
154 |
extern Client *getnext(Client *c); /* returns next visible client */ |
|
155 |
extern Client *getprev(Client *c); /* returns previous visible client */ |
|
454
ffb462fb7903
small change to comments, renamed two set* functions in client.c into update*
Anselm R. Garbe <arg@10kloc.org>
parents:
453
diff
changeset
|
156 |
extern void settags(Client *c, Client *trans); /* sets tags of c */ |
456
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
157 |
extern void tag(Arg *arg); /* tags c with arg's index */ |
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
158 |
extern void toggletag(Arg *arg); /* toggles c tags with arg's index */ |
73 | 159 |
|
32 | 160 |
/* util.c */ |
452 | 161 |
extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ |
456
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
162 |
extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ |
452 | 163 |
extern void *erealloc(void *ptr, unsigned int size); /* reallocates memory, exits on error */ |
456
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
164 |
extern void spawn(Arg *arg); /* forks a new subprocess with to arg's cmd */ |
327
96d09fd98e89
separated several functions into view.c
Anselm R. Garbe <arg@10kloc.org>
parents:
292
diff
changeset
|
165 |
|
96d09fd98e89
separated several functions into view.c
Anselm R. Garbe <arg@10kloc.org>
parents:
292
diff
changeset
|
166 |
/* view.c */ |
452 | 167 |
extern void detach(Client *c); /* detaches c from global client list */ |
456
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
168 |
extern void dofloat(Arg *arg); /* arranges all windows floating, arg is ignored */ |
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
169 |
extern void dotile(Arg *arg); /* arranges all windows, arg is ignored */ |
452 | 170 |
extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ |
171 |
extern void focusprev(Arg *arg); /* focuses previous visible client, arg is ignored */ |
|
172 |
extern Bool isvisible(Client *c); /* returns True if client is visible */ |
|
456
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
173 |
extern void resizecol(Arg *arg); /* resizes the master width with arg's index value */ |
452 | 174 |
extern void restack(); /* restores z layers of all clients */ |
456
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
175 |
extern void togglemode(Arg *arg); /* toggles global arrange function (dotile/dofloat) */ |
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
176 |
extern void toggleview(Arg *arg); /* toggles the tag with arg's index (in)visible */ |
d11d739ad9df
some other simplifications
Anselm R. Garbe <arg@10kloc.org>
parents:
454
diff
changeset
|
177 |
extern void view(Arg *arg); /* views the tag with arg's index */ |
454
ffb462fb7903
small change to comments, renamed two set* functions in client.c into update*
Anselm R. Garbe <arg@10kloc.org>
parents:
453
diff
changeset
|
178 |
extern void viewall(Arg *arg); /* views all tags, arg is ignored */ |
452 | 179 |
extern void zoom(Arg *arg); /* zooms the focused client to master column, arg is ignored */ |