recreated dwm.h
0453c1d1
3 file(s) · +23 −21
| 35 | 35 | dist: clean |
|
| 36 | 36 | @echo creating dist tarball |
|
| 37 | 37 | @mkdir -p dwm-${VERSION} |
|
| 38 | - | @cp -R LICENSE Makefile README config.def.h config.mk \ |
|
| 38 | + | @cp -R LICENSE Makefile README config.def.h config.mk dwm.h \ |
|
| 39 | 39 | dwm.1 ${SRC} dwm-${VERSION} |
|
| 40 | 40 | @tar -cf dwm-${VERSION}.tar dwm-${VERSION} |
|
| 41 | 41 | @gzip dwm-${VERSION}.tar |
| 25 | 25 | * |
|
| 26 | 26 | * To understand everything else, start reading main(). |
|
| 27 | 27 | */ |
|
| 28 | + | #include "dwm.h" |
|
| 29 | + | ||
| 28 | 30 | #include <errno.h> |
|
| 29 | 31 | #include <locale.h> |
|
| 30 | 32 | #include <stdarg.h> |
|
| 39 | 41 | #include <X11/cursorfont.h> |
|
| 40 | 42 | #include <X11/keysym.h> |
|
| 41 | 43 | #include <X11/Xatom.h> |
|
| 42 | - | #include <X11/Xlib.h> |
|
| 43 | 44 | #include <X11/Xproto.h> |
|
| 44 | 45 | #include <X11/Xutil.h> |
|
| 45 | 46 | ||
| 54 | 55 | enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ |
|
| 55 | 56 | enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ |
|
| 56 | 57 | enum { WMProtocols, WMDelete, WMName, WMState, WMLast };/* default atoms */ |
|
| 57 | - | ||
| 58 | - | /* typedefs */ |
|
| 59 | - | typedef struct Client Client; |
|
| 60 | - | ||
| 61 | - | struct Client { |
|
| 62 | - | char name[256]; |
|
| 63 | - | int x, y, w, h; |
|
| 64 | - | int rx, ry, rw, rh; /* revert geometry */ |
|
| 65 | - | int basew, baseh, incw, inch, maxw, maxh, minw, minh; |
|
| 66 | - | int minax, maxax, minay, maxay; |
|
| 67 | - | long flags; |
|
| 68 | - | unsigned int border, oldborder; |
|
| 69 | - | Bool isbanned, isfixed, ismax, isfloating, wasfloating; |
|
| 70 | - | Bool *tags; |
|
| 71 | - | Client *next; |
|
| 72 | - | Client *prev; |
|
| 73 | - | Client *snext; |
|
| 74 | - | Window win; |
|
| 75 | - | }; |
|
| 76 | 58 | ||
| 77 | 59 | typedef struct { |
|
| 78 | 60 | int x, y, w, h; |
|
| 1 | + | /* See LICENSE file for copyright and license details. */ |
|
| 2 | + | #include <X11/Xlib.h> |
|
| 3 | + | ||
| 4 | + | /* typedefs */ |
|
| 5 | + | typedef struct Client Client; |
|
| 6 | + | struct Client { |
|
| 7 | + | char name[256]; |
|
| 8 | + | int x, y, w, h; |
|
| 9 | + | int rx, ry, rw, rh; /* revert geometry */ |
|
| 10 | + | int basew, baseh, incw, inch, maxw, maxh, minw, minh; |
|
| 11 | + | int minax, maxax, minay, maxay; |
|
| 12 | + | long flags; |
|
| 13 | + | unsigned int border, oldborder; |
|
| 14 | + | Bool isbanned, isfixed, ismax, isfloating, wasfloating; |
|
| 15 | + | Bool *tags; |
|
| 16 | + | Client *next; |
|
| 17 | + | Client *prev; |
|
| 18 | + | Client *snext; |
|
| 19 | + | Window win; |
|
| 20 | + | }; |