ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 32 00 00 00 64 08 02 00 00 00 4b 8a f4 | .PNG........IHDR...2...d.....K.. |
0020 | 0c 00 00 00 04 67 41 4d 41 00 00 d6 d8 d4 4f 58 32 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 | .....gAMA.....OX2....tEXtSoftwar |
0040 | 65 00 41 64 6f 62 65 20 49 6d 61 67 65 52 65 61 64 79 71 c9 65 3c 00 00 0e 4b 49 44 41 54 78 da | e.Adobe.ImageReadyq.e<...KIDATx. |
0060 | 62 54 74 99 c3 30 f8 00 40 00 31 31 0c 4a 00 10 40 83 d4 59 00 01 34 48 9d 05 10 40 83 d4 59 00 | bTt..0..@.11.J..@..Y..4H...@..Y. |
0080 | 01 34 48 9d 05 10 40 83 d4 59 00 01 34 48 9d 05 10 40 83 d4 59 00 01 34 48 9d 05 10 40 83 d4 59 | .4H...@..Y..4H...@..Y..4H...@..Y |
00a0 | 00 01 34 48 9d 05 10 40 83 d4 59 00 01 34 48 9d 05 10 40 83 d4 59 00 01 34 48 9d 05 10 40 83 d4 | ..4H...@..Y..4H...@..Y..4H...@.. |
00c0 | 59 00 01 34 48 9d 05 10 40 83 d4 59 00 01 34 48 9d 05 10 40 83 d4 59 00 01 34 48 9d 05 10 40 83 | Y..4H...@..Y..4H...@..Y..4H...@. |
00e0 | d4 59 00 01 34 48 9d 05 10 40 83 d4 59 00 01 34 48 9d 05 10 40 2c d4 32 48 90 f3 3b 32 f7 cf 3f | .Y..4H...@..Y..4H...@,.2H..;2..? |
0100 | a6 cf 3f d9 c9 36 0d 20 80 c8 74 16 0b d3 3f 31 ee af 40 a7 70 b2 fc 81 3b 88 89 99 89 89 89 19 | ..?..6....t...?1..@.p...;....... |
0120 | c8 f8 ff ff ff bf 7f ff 80 18 e2 b8 f7 3f b9 5e 7f e5 fe f4 83 95 78 f3 01 02 88 85 8c 50 91 e3 | .............?.^......x......P.. |
0140 | ff 08 74 13 03 23 a3 80 80 10 2f af 28 17 37 2f 27 27 37 1b 1b 1b d0 4d 8c 4c e0 54 01 76 d6 df | ..t..#..../.(.7/''7....M.L.T.v.. |
0160 | bf 7f 7e fd fa f9 e3 fb b7 cf 5f 3e 7e fd f2 f9 c3 97 3f 4f 3e 72 df 7f cb f5 eb 0f 23 41 5b 00 | ..~......._>~.....?O>r......#A[. |
0180 | 02 88 04 67 01 03 46 5b ec 15 d0 59 7c fc 82 12 12 4a 82 42 a2 dc 3c bc ec 6c 1c ac 6c 6c cc cc | ...g..F[...Y|....J.B..<..l..ll.. |
01a0 | cc 8c 8c 68 c9 f4 3f 10 ff fd fb ef cf 9f df 20 a7 7d ff fa f9 d3 07 c5 4f ef 75 3f 7d bb f2 84 | ...h..?..........}......O.u?}... |
01c0 | e5 c6 33 02 f6 02 04 10 b1 ce 92 e2 fd ac 2e f2 86 9f 8f 5b 4e de 48 4c 5c 8a 87 87 8f 95 15 18 | ..3................[N.HL\....... |
01e0 | 3c 78 72 0c 28 48 98 c1 80 9d 9d 9d 97 8f 5f 58 58 ec fb b7 af 1f 3e bc 13 17 79 a7 22 f5 73 f7 | <xr.(H........_XX.....>...y.".s. |
0200 | c5 7f 3f 7f ff c7 a5 19 20 80 58 88 74 13 30 9c 24 a5 e5 14 14 d5 85 84 44 81 f1 85 11 36 f8 01 | ..?.......X.t.0.$.......D....6.. |
0220 | 23 10 b0 b2 b2 b2 f0 f1 73 72 71 f3 f1 0b f0 f2 bd e5 e5 fe bc ee d8 57 5c 2e 03 08 20 66 41 25 | #.......srq............W\....fA% |
0240 | 3f fc 46 02 93 91 ae f8 4b 39 79 15 55 55 6d b2 dc 84 e2 38 66 66 26 56 56 76 36 76 0e 6e 76 46 | ?.F.....K9y.UUm....8ff&VVv6v.nvF |
/* aewm - a minimalistic X11 window manager. ------- vim:sw=4:et
* Copyright (c) 1998-2001 Decklin Foster <decklin@red-bean.com>
* Free software! Please see README for details and license. */
#include "aewm.h"
#include <X11/Xmd.h>
Client *head_client = NULL;
Client *find_client(Window w)
{
Client *c;
for (c = head_client; c; c = c->next)
if (c->window == w) return c;
return NULL;
}
void set_focus_on(Window w)
{
char *name;
XFetchName(dpy, w, &name);
if (name && strcmp(name, "skip")) {
XSetInputFocus(dpy, w, RevertToPointerRoot, CurrentTime);
#ifdef DEBUG
printf("aewm-drakx: adding %lx %s\n", w, name);
#endif
}
}
/* Attempt to follow the ICCCM by explicity specifying 32 bits for
* this property. Does this goof up on 64 bit systems? */
void set_wm_state(Client *c, int state)
{
CARD32 data[2];
data[0] = state;
data[1] = None; /* Icon? We don't need no steenking icon. */
XChangeProperty(dpy, c->window, wm_state, wm_state,
32, PropModeReplace, (unsigned char *)data, 2);
}
/* If we can't find a WM_STATE we're going to have to assume
* Withdrawn. This is not exactly optimal, since we can't really
* distinguish between the case where no WM has run yet and when the
* state was explicitly removed (Clients are allowed to either set the
* atom to Withdrawn or just remove it... yuck.) */
long get_wm_state(Client *c)
{
Atom real_type; int real_format;
unsigned long items_read, items_left;
long *data, state = WithdrawnState;
if (XGetWindowProperty(dpy, c->window, wm_state, 0L, 2L, False,
wm_state, &real_type, &real_format, &items_read, &items_left,
(unsigned char **) &data) == Success && items_read) {
state = *data;
XFree(data);
}
return state;
}
void remove_client(Client *c)
{
int ignore_xerror(Display *dpy, XErrorEvent *e) { return 0; }
Client *p;
XGrabServer(dpy);
XSetErrorHandler(ignore_xerror);
set_wm_state(c, WithdrawnState);
if (head_client == c) head_client = c->next;
else for (p = head_client; p && p->next; p = p->next)
if (p->next == c) p->next = c->next;
free(c);
if (head_client) set_focus_on(head_client->window);
XSync(dpy, False);
XSetErrorHandler(handle_xerror);
XUngrabServer(dpy);
}
void make_new_client(Window w)
{
Client *c;
XWindowAttributes attr;
c = malloc(sizeof *c);
c->next = head_client;
c->window = w;
head_client = c;
XGrabServer(dpy);
XGetWindowAttributes(dpy, w, &attr);
if (attr.map_state != IsViewable) {
XWMHints *hints;
set_wm_state(c, NormalState);
if ((hints = XGetWMHints(dpy, w))) {
if (hints->flags & StateHint) set_wm_state(c, hints->initial_state);
XFree(hints);
}
}
|
09a0 | f1 30 91 32 40 09 f4 21 b0 8c 00 86 d0 7f ac 25 26 74 68 04 e4 38 3d 55 61 60 cb 0a 98 d3 81 b9 | .0.2@..!.......%&th..8=Ua`...... |
09c0 | 1d 22 0e 10 40 2c 10 fd 57 ef bd 03 4a e3 72 16 d0 13 32 62 dc c0 fa 8b a4 82 0d 3a ae 45 28 51 | ."..@,..W...J.r...2b.......:.E(Q |
09e0 | 18 a8 8a 88 0a 72 82 46 0e ff 33 c0 5b a0 00 01 c4 02 cf 68 df 7f fe c1 55 9b 4a 8b f3 70 b0 52 | .....r.F..3.[......h....U.J..p.R |
0a00 | 6b e0 14 25 38 95 a4 f9 78 b9 59 ff 83 83 0d 19 00 04 10 0b de 01 6b 06 41 3e 0e 09 21 2e 60 0c | k..%8...x.Y...........k.A>..!.`. |
0a20 | 32 d0 00 00 9d 22 26 c8 c9 ca c2 8c 39 5e 08 10 40 78 06 6a 19 c4 85 b8 80 e8 3f f1 85 15 fe e1 | 2...."&.....9^..@x.j......?..... |
0a40 | 65 50 7a 07 e6 aa df ef 3f ff 04 1a c9 cd c9 02 2c 5d 81 d9 02 18 71 7f 31 f2 19 40 00 61 77 16 | ePz.....?.......,]....q.1..@.aw. |
0a60 | b0 f5 23 29 c2 cd cf c3 86 27 63 92 04 80 76 7f ff f9 f7 d1 8b cf 2f 90 1a 14 42 fc 1c 0e c6 52 | ..#).....'c...v......./...B....R |
0a80 | f0 ba 00 58 fc 7e 87 75 ae 00 02 08 8b b3 38 d9 59 a4 45 b9 81 65 09 b5 dc 04 b1 17 18 48 2f 50 | ...X.~.u......8.Y.E..e.......H/P |
0aa0 | 1b 39 ef 3e fe d8 77 fa 29 30 d8 e0 a1 05 af 76 01 02 88 05 b3 31 24 2d c6 03 24 f1 bb 09 d8 00 | .9.>..w.)0.....v.....1$-..$..... |
0ac0 | 04 f6 2c f8 f8 79 58 61 03 79 90 36 16 68 00 1c 5c 3d 03 a3 09 2c 02 ec f1 83 c6 93 81 a5 cf e7 | ..,..yXa.y.6.h..\=...,.......... |
0ae0 | af bf d0 0c 01 d6 b0 90 24 ff 17 56 86 03 fb a7 fb c1 5d 23 80 00 62 41 1b b2 02 16 4e c0 c2 e3 | ........$..V......]#..bA....N... |
0b00 | 3f a1 70 e2 e3 13 90 00 36 75 b9 d8 40 33 04 4c 8c c0 c2 05 73 a0 11 e4 26 06 c6 07 cf 3f df 7d | ?.p.....6u..@3.L....s...&....?.} |
0b20 | fc 01 e8 32 b4 3e 34 30 4d e9 28 0b 01 db 39 c0 20 80 87 16 bc 0c 02 08 20 16 e4 02 13 98 9e d8 | ...2.>40M.(...9................. |
0b40 | c0 43 fe 04 e3 e5 ec f5 37 40 04 0c 0f 60 1d 0a ac c2 71 15 2e b8 32 13 30 b1 ab cb 0b 00 49 60 | .C......7@...`....q...2.0.....I` |
0b60 | 04 63 b5 0c 20 80 10 ce 02 7a 9e 9d 95 89 a4 24 f3 fa c3 f7 57 ef be a3 35 aa 08 a6 7d 31 21 2e | .c.......z.....$....W...5...}1!. |
0b80 | 60 8b 99 09 6f 8d 01 10 40 2c b0 ea 89 49 80 87 9d 89 91 91 68 1f 33 62 36 cb 08 57 f0 2c c0 da | `...o...@,...I......h.3b6..W.,.. |
0ba0 | 82 47 4e 82 e7 2f 8e 44 02 17 05 08 20 16 68 b1 09 6c df 91 52 64 3e 7e f5 e5 3d b0 59 46 4a 7e | .GN../.D......h..l..Rd>~..=.YFJ~ |
0bc0 | 04 a6 21 15 19 7e 60 2b 17 ab 9b c0 73 58 ff 7f fd 86 16 10 00 01 04 19 1a 61 04 35 0d 88 73 17 | ..!..~`+....sX...........a.5..s. |
0be0 | 30 f0 ef 3f fb 04 6c 52 93 e4 26 60 38 01 1b b7 c0 ee d7 6f a4 6a 17 d8 8e 3a 00 c9 77 cc 4c c0 | 0..?..lR..&`8......o.j...:..w.L. |
0c00 | c2 e2 de d3 4f 5f 60 e3 d6 00 01 c4 02 49 25 c0 b2 8a c8 c0 02 b6 5d 81 25 f5 7f 98 65 c0 22 17 | ....O_`......I%.......].%...e.". |
0c20 | 58 41 71 b1 b3 80 16 19 fc 07 36 af 7f 7d fc fa eb c3 a7 9f 68 8e 06 3a 48 4a 84 1b 6b 53 00 e8 | XAq.......6..}......h..:HJ..kS.. |
0c40 | 26 60 7a 78 f8 fc f3 cf df 88 81 2a 80 00 62 81 a7 44 22 93 39 d0 59 c0 a6 a2 88 00 87 ae b2 30 | &`zx.......*..b..D".9.Y........0 |
0c60 | b0 11 0c d4 88 99 bc be fd f8 f3 e4 d5 97 cb 77 df fe 00 37 82 81 d1 00 6c fd 01 cb 8b df 7f fe | ...............w...7....l....... |
0c80 | 63 ba 09 18 48 40 67 a1 b9 18 20 80 48 ee 90 7d ff f1 c7 40 4d 04 58 de 00 cb aa ff ff b1 17 26 | c...H@g.....H..}...@M.X........& |
0ca0 | c0 64 a4 2e 2f 28 27 c1 7b ec d2 0b 60 9f 0c 18 15 a0 56 17 86 4a 60 0e 7b 03 ca cb df 30 43 11 | .d../('.{...`.....V..J`.{....0C. |
0cc0 | 20 80 48 28 11 fe 83 bb 40 c6 9a a2 aa 30 37 e1 6f 6c 01 5d 63 6b 28 09 6c 23 00 0b 71 ac 79 1c | ..H(....@....07.ol.]ck(.l#..q.y. |
0ce0 | 28 f6 ee d3 4f ac e5 0b 40 00 b1 40 8c 78 f9 ee 1b 31 51 08 6c 95 2b 4a f3 03 8b 37 62 8a 5c a0 | (...O...@..@.x...1Q.l.+J...7b.\. |
0d00 | 1a 60 ff 07 58 bd dc 7d f2 e9 e3 97 9f a0 92 13 35 0f 02 33 19 b0 1c c6 da a3 01 08 20 88 b3 18 | .`..X..}........5..3............ |
0d20 | 5e be fb 4e 38 0f 02 7b 0d 72 fc 68 89 09 e8 63 60 52 03 46 04 d0 04 60 82 93 15 e7 45 76 31 30 | ^..N8..{.r.h...c`R.F...`....Ev10 |
0d40 | 76 80 35 ec d3 d7 5f 81 55 10 c3 f3 cf c4 c7 0c 40 00 b1 90 54 ac 03 0b 43 60 1d 05 b7 17 12 33 | v.5..._.U.......@...T...C`.....3 |
0d60 | c0 8e de 79 f0 58 03 3b 78 30 48 06 69 bc 13 58 df 03 eb 63 60 36 04 b6 1d b8 b0 b5 b9 7f fd fe | ...y.X.;x0H.i..X...c`6.......... |
0d80 | f7 e3 d7 1f cc f0 02 08 20 62 9d 05 0c 2a 60 93 10 e8 0e 64 23 80 4d 86 97 6f bf 3d 7b fd 05 ee | .........b...*`....d#.M..o.={... |
0da0 | 08 cc 09 33 60 ef 12 58 56 6b 29 09 f1 73 b3 a1 c5 17 d0 cc 67 6f be 02 1b 61 40 c7 a1 e9 02 08 | ...3`..XVk)..s......go...a@..... |
0dc0 | 20 16 f8 68 13 31 8e bb f1 e0 03 b0 6e 06 16 4e c0 30 00 a6 7a 60 a1 f5 fe d3 4f 60 43 0a da 00 | ...h.1......n..N.0..z`....O`C... |
0de0 | e1 64 55 93 17 44 4b 3d 40 f5 c0 04 c4 c4 48 5a b3 1b 20 80 48 2b 20 80 5e 07 96 5b c0 f4 8b 99 | .dU..DK=@.....HZ....H+..^..[.... |
0e00 | 16 81 2d 47 33 6d 71 26 d4 e0 04 96 b7 8f 5f 7e 79 f3 e1 87 88 00 07 49 16 01 04 10 15 66 31 80 | ..-G3mq&......_~y......I.....f1. |
0e20 | 21 01 6c a5 98 6a 89 fd 45 5d 8f 01 19 f9 01 d6 54 c0 3c 81 67 e6 11 2b 00 08 20 4a d7 06 82 12 | !.l..j..E]......T.<.g..+...J.... |
0e40 | 80 b2 90 a9 b6 d8 5f 6c 99 ff f0 f9 e7 c0 a0 22 ad bd 04 06 00 01 44 69 68 01 13 a5 91 86 28 5a | ......_l......."......Dih.....(Z |
0e60 | 91 08 4c 48 af de 7f 3b 7d f5 15 2c d9 91 dc 9f 03 08 20 8a 9c 05 6c cd 02 6b 18 cc ec 7d fb f1 | ..LH...;}..,..........l..k...}.. |
0e80 | c7 0b 37 df 20 57 bd a4 02 80 00 62 1c 9c fb 13 01 02 68 90 ae 3b 05 08 a0 41 ea 2c 80 00 1a a4 | ..7..W.....b......h..;...A.,.... |
0ea0 | ce 02 08 30 00 0a fb d3 3c ef 15 27 1f 00 00 00 00 49 45 4e 44 ae 42 60 82 | ...0....<..'.....IEND.B`. |