diff options
Diffstat (limited to '')
| -rw-r--r-- | dwm.h | 38 | ||||
| -rw-r--r-- | dwm.html | 7 |
2 files changed, 21 insertions, 24 deletions
| @@ -37,28 +37,28 @@ union Arg { | |||
| 37 | }; | 37 | }; |
| 38 | 38 | ||
| 39 | /* atoms */ | 39 | /* atoms */ |
| 40 | enum { WMProtocols, WMDelete, WMLast }; | ||
| 41 | enum { NetSupported, NetWMName, NetLast }; | 40 | enum { NetSupported, NetWMName, NetLast }; |
| 41 | enum { WMProtocols, WMDelete, WMLast }; | ||
| 42 | 42 | ||
| 43 | /* cursor */ | 43 | /* cursor */ |
| 44 | enum { CurNormal, CurResize, CurMove, CurInput, CurLast }; | 44 | enum { CurNormal, CurResize, CurMove, CurLast }; |
| 45 | 45 | ||
| 46 | struct Fnt { | 46 | struct Fnt { |
| 47 | XFontStruct *xfont; | ||
| 48 | XFontSet set; | ||
| 49 | int ascent; | 47 | int ascent; |
| 50 | int descent; | 48 | int descent; |
| 51 | int height; | 49 | int height; |
| 50 | XFontSet set; | ||
| 51 | XFontStruct *xfont; | ||
| 52 | }; | 52 | }; |
| 53 | 53 | ||
| 54 | struct DC { /* draw context */ | 54 | struct DC { /* draw context */ |
| 55 | GC gc; | ||
| 56 | Drawable drawable; | ||
| 57 | int x, y, w, h; | 55 | int x, y, w, h; |
| 58 | Fnt font; | ||
| 59 | unsigned long bg; | 56 | unsigned long bg; |
| 60 | unsigned long fg; | 57 | unsigned long fg; |
| 61 | unsigned long border; | 58 | unsigned long border; |
| 59 | Drawable drawable; | ||
| 60 | Fnt font; | ||
| 61 | GC gc; | ||
| 62 | }; | 62 | }; |
| 63 | 63 | ||
| 64 | struct Client { | 64 | struct Client { |
| @@ -72,10 +72,10 @@ struct Client { | |||
| 72 | unsigned int border; | 72 | unsigned int border; |
| 73 | long flags; | 73 | long flags; |
| 74 | Bool isfloat; | 74 | Bool isfloat; |
| 75 | Window win; | ||
| 76 | Window title; | ||
| 77 | Client *next; | 75 | Client *next; |
| 78 | Client *revert; | 76 | Client *revert; |
| 77 | Window win; | ||
| 78 | Window title; | ||
| 79 | }; | 79 | }; |
| 80 | 80 | ||
| 81 | struct Rule { | 81 | struct Rule { |
| @@ -92,20 +92,18 @@ struct Key { | |||
| 92 | Arg arg; | 92 | Arg arg; |
| 93 | }; | 93 | }; |
| 94 | 94 | ||
| 95 | extern Display *dpy; | 95 | extern char *tags[TLast], stext[1024]; |
| 96 | extern Window root, barwin; | 96 | extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; |
| 97 | extern Atom wmatom[WMLast], netatom[NetLast]; | ||
| 98 | extern Cursor cursor[CurLast]; | ||
| 99 | extern Bool running, issel; | ||
| 100 | extern void (*handler[LASTEvent])(XEvent *); | 97 | extern void (*handler[LASTEvent])(XEvent *); |
| 101 | extern void (*arrange)(Arg *); | 98 | extern void (*arrange)(Arg *); |
| 102 | extern Key key[]; | 99 | extern Atom wmatom[WMLast], netatom[NetLast]; |
| 103 | 100 | extern Bool running, issel; | |
| 104 | extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; | ||
| 105 | extern char *tags[TLast], stext[1024]; | ||
| 106 | |||
| 107 | extern DC dc; | ||
| 108 | extern Client *clients, *sel; | 101 | extern Client *clients, *sel; |
| 102 | extern Cursor cursor[CurLast]; | ||
| 103 | extern DC dc; | ||
| 104 | extern Display *dpy; | ||
| 105 | extern Key key[]; | ||
| 106 | extern Window root, barwin; | ||
| 109 | 107 | ||
| 110 | /* client.c */ | 108 | /* client.c */ |
| 111 | extern void ban(Client *c); | 109 | extern void ban(Client *c); |
| @@ -39,10 +39,9 @@ | |||
| 39 | </p> | 39 | </p> |
| 40 | <ul> | 40 | <ul> |
| 41 | <li> | 41 | <li> |
| 42 | dwm has no 9P support, no menu, no editable tagbars, | 42 | dwm has no 9P support, no editable tagbars, no shell-based |
| 43 | no shell-based configuration and remote control and comes without | 43 | configuration and remote control and comes without any additional |
| 44 | any additional tools like printing the selection or warping the | 44 | tools like printing the selection or warping the mouse. |
| 45 | mouse. | ||
| 46 | </li> | 45 | </li> |
| 47 | <li> | 46 | <li> |
| 48 | dwm is only a single binary, it's source code is intended to never | 47 | dwm is only a single binary, it's source code is intended to never |
