diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-12 09:46:19 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-12 09:46:19 +0200 |
| commit | cbfc69e310e41cf0d9d4ae7529856014f2b88822 (patch) | |
| tree | bfc564f1bbbfaf20e635a5d087be5f82ddbcd8aa /dwm.h | |
| parent | applied Christof Musik's multihead patch for a pathologic cornercase (diff) | |
| download | dwm-cbfc69e310e41cf0d9d4ae7529856014f2b88822.tar.gz dwm-cbfc69e310e41cf0d9d4ae7529856014f2b88822.zip | |
made introduction comment in dwm.h shorter
Diffstat (limited to 'dwm.h')
| -rw-r--r-- | dwm.h | 35 |
1 files changed, 15 insertions, 20 deletions
| @@ -6,19 +6,14 @@ | |||
| 6 | * driven through handling X events. In contrast to other X clients, a window | 6 | * driven through handling X events. In contrast to other X clients, a window |
| 7 | * manager like dwm selects for SubstructureRedirectMask on the root window, to | 7 | * manager like dwm selects for SubstructureRedirectMask on the root window, to |
| 8 | * receive events about child window appearance and disappearance. Only one X | 8 | * receive events about child window appearance and disappearance. Only one X |
| 9 | * connection at a time is allowed to select for this event mask by any X | 9 | * connection at a time is allowed to select for this event mask. |
| 10 | * server, thus only one window manager instance can be executed at a time. | ||
| 11 | * Any attempt to select for SubstructureRedirectMask by any connection after | ||
| 12 | * another connection already selected for those events, will result in an | ||
| 13 | * error generated by the server. Such errors are reported through calling the | ||
| 14 | * current X error handler. | ||
| 15 | * | 10 | * |
| 16 | * Calls to pop an X event from the event queue of the X connection are | 11 | * Calls to fetch an X event from the event queue of the X connection are |
| 17 | * blocking. Due the fact, that dwm reads status text from standard input, a | 12 | * blocking. Due the fact, that dwm reads status text from standard input, a |
| 18 | * select-driven main loop has been implemented which selects for reads on the | 13 | * select-driven main loop has been implemented which selects for reads on the |
| 19 | * X connection and STDIN_FILENO to handle all data smoothly and without | 14 | * X connection and STDIN_FILENO to handle all data smoothly and without |
| 20 | * busy-loop quirks.. The event handlers of dwm are organized in an array | 15 | * busy-loop quirks. The event handlers of dwm are organized in an array which |
| 21 | * which is accessed whenever a new event has been popped. This allows event | 16 | * is accessed whenever a new event has been fetched. This allows event |
| 22 | * dispatching in O(1) time. | 17 | * dispatching in O(1) time. |
| 23 | * | 18 | * |
| 24 | * Each child window of the root window is called a client in window manager | 19 | * Each child window of the root window is called a client in window manager |
| @@ -27,20 +22,20 @@ | |||
| 27 | * history is remembered through a global stack list. Each client contains an | 22 | * history is remembered through a global stack list. Each client contains an |
| 28 | * array of Bools of the same size as the global tags array to indicate the | 23 | * array of Bools of the same size as the global tags array to indicate the |
| 29 | * tags of a client. There are no other data structures to organize the clients | 24 | * tags of a client. There are no other data structures to organize the clients |
| 30 | * in tag lists, because a single global list is most simple. All clients which | 25 | * in tag lists. All clients which have at least one tag enabled of the current |
| 31 | * have at least one tag enabled of the current tags viewed, will be visible on | 26 | * tags viewed, will be visible on the screen, all other clients are banned to |
| 32 | * the screen, all other clients are banned to the x-location 2 * screen width. | 27 | * the x-location x + 2 * screen width. This avoids having additional layers |
| 33 | * This avoids having additional layers of workspace handling. | 28 | * of workspace handling. |
| 34 | * | 29 | * |
| 35 | * For each client dwm creates a small title window which is resized whenever | 30 | * For each client dwm creates a small title window which is resized whenever |
| 36 | * the WM_NAME or _NET_WM_NAME properties are updated. | 31 | * the WM_NAME or _NET_WM_NAME properties are updated or the client is resized. |
| 32 | * Keys and tagging rules are organized as arrays and defined in the config.h | ||
| 33 | * file. These arrays are kept static in event.o and tag.o respectively, | ||
| 34 | * because no other part of dwm needs access to them. The current mode is | ||
| 35 | * represented by the arrange function pointer which wether points to dofloat | ||
| 36 | * or dotile. | ||
| 37 | * | 37 | * |
| 38 | * Keys and tagging rules are organized as arrays as well and defined in the | 38 | * To understand everything else, start with reading main.c:main(). |
| 39 | * config.h file. These arrays are kept static in event.o and tag.o | ||
| 40 | * respectively, because no other part of dwm needs access to them. | ||
| 41 | * | ||
| 42 | * The current mode is represented by the arrange function pointer which wether | ||
| 43 | * points to dofloat or dotile. | ||
| 44 | */ | 39 | */ |
| 45 | 40 | ||
| 46 | #include "config.h" | 41 | #include "config.h" |
