home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume3 / awm2 / part02 < prev    next >
SHell self-extracting ARchive  |  1989-02-17  |  54.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 75 75 | 6e 65 74 21 77 79 73 65 |Path: uu|net!wyse|
|00000010| 21 6d 69 6b 65 77 0a 46 | 72 6f 6d 3a 20 6d 69 6b |!mikew.F|rom: mik|
|00000020| 65 77 40 77 79 73 65 2e | 77 79 73 65 2e 63 6f 6d |ew@wyse.|wyse.com|
|00000030| 20 28 4d 69 6b 65 20 57 | 65 78 6c 65 72 29 0a 4e | (Mike W|exler).N|
|00000040| 65 77 73 67 72 6f 75 70 | 73 3a 20 63 6f 6d 70 2e |ewsgroup|s: comp.|
|00000050| 73 6f 75 72 63 65 73 2e | 78 0a 53 75 62 6a 65 63 |sources.|x.Subjec|
|00000060| 74 3a 20 76 30 33 69 30 | 31 38 3a 20 20 20 41 72 |t: v03i0|18: Ar|
|00000070| 64 65 6e 74 20 57 69 6e | 64 6f 77 20 4d 61 6e 61 |dent Win|dow Mana|
|00000080| 67 65 72 2c 20 50 61 74 | 63 68 6c 65 76 65 6c 20 |ger, Pat|chlevel |
|00000090| 39 2c 20 50 61 72 74 30 | 32 2f 31 32 0a 4d 65 73 |9, Part0|2/12.Mes|
|000000a0| 73 61 67 65 2d 49 44 3a | 20 3c 32 30 36 38 40 77 |sage-ID:| <2068@w|
|000000b0| 79 73 65 2e 77 79 73 65 | 2e 63 6f 6d 3e 0a 44 61 |yse.wyse|.com>.Da|
|000000c0| 74 65 3a 20 31 37 20 46 | 65 62 20 38 39 20 31 39 |te: 17 F|eb 89 19|
|000000d0| 3a 31 36 3a 31 30 20 47 | 4d 54 0a 4f 72 67 61 6e |:16:10 G|MT.Organ|
|000000e0| 69 7a 61 74 69 6f 6e 3a | 20 57 79 73 65 20 54 65 |ization:| Wyse Te|
|000000f0| 63 68 6e 6f 6c 6f 67 79 | 2c 20 53 61 6e 20 4a 6f |chnology|, San Jo|
|00000100| 73 65 0a 4c 69 6e 65 73 | 3a 20 31 34 32 34 0a 41 |se.Lines|: 1424.A|
|00000110| 70 70 72 6f 76 65 64 3a | 20 6d 69 6b 65 77 40 77 |pproved:| mikew@w|
|00000120| 79 73 65 2e 63 6f 6d 0a | 0a 53 75 62 6d 69 74 74 |yse.com.|.Submitt|
|00000130| 65 64 2d 62 79 3a 20 6b | 6d 77 40 61 72 64 65 6e |ed-by: k|mw@arden|
|00000140| 74 20 28 4b 65 6e 20 57 | 61 6c 6c 69 63 68 29 0a |t (Ken W|allich).|
|00000150| 50 6f 73 74 69 6e 67 2d | 6e 75 6d 62 65 72 3a 20 |Posting-|number: |
|00000160| 56 6f 6c 75 6d 65 20 33 | 2c 20 49 73 73 75 65 20 |Volume 3|, Issue |
|00000170| 31 38 0a 41 72 63 68 69 | 76 65 2d 6e 61 6d 65 3a |18.Archi|ve-name:|
|00000180| 20 61 77 6d 32 2f 70 61 | 72 74 30 32 0a 0a 23 21 | awm2/pa|rt02..#!|
|00000190| 20 2f 62 69 6e 2f 73 68 | 0a 23 20 54 68 69 73 20 | /bin/sh|.# This |
|000001a0| 69 73 20 61 20 73 68 65 | 6c 6c 20 61 72 63 68 69 |is a she|ll archi|
|000001b0| 76 65 2e 20 20 52 65 6d | 6f 76 65 20 61 6e 79 74 |ve. Rem|ove anyt|
|000001c0| 68 69 6e 67 20 62 65 66 | 6f 72 65 20 74 68 69 73 |hing bef|ore this|
|000001d0| 20 6c 69 6e 65 2c 20 74 | 68 65 6e 20 75 6e 70 61 | line, t|hen unpa|
|000001e0| 63 6b 0a 23 20 69 74 20 | 62 79 20 73 61 76 69 6e |ck.# it |by savin|
|000001f0| 67 20 69 74 20 69 6e 74 | 6f 20 61 20 66 69 6c 65 |g it int|o a file|
|00000200| 20 61 6e 64 20 74 79 70 | 69 6e 67 20 22 73 68 20 | and typ|ing "sh |
|00000210| 66 69 6c 65 22 2e 20 20 | 54 6f 20 6f 76 65 72 77 |file". |To overw|
|00000220| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 0a 23 20 |rite exi|sting.# |
|00000230| 66 69 6c 65 73 2c 20 74 | 79 70 65 20 22 73 68 20 |files, t|ype "sh |
|00000240| 66 69 6c 65 20 2d 63 22 | 2e 20 20 59 6f 75 20 63 |file -c"|. You c|
|00000250| 61 6e 20 61 6c 73 6f 20 | 66 65 65 64 20 74 68 69 |an also |feed thi|
|00000260| 73 20 61 73 20 73 74 61 | 6e 64 61 72 64 20 69 6e |s as sta|ndard in|
|00000270| 70 75 74 20 76 69 61 0a | 23 20 75 6e 73 68 61 72 |put via.|# unshar|
|00000280| 2c 20 6f 72 20 62 79 20 | 74 79 70 69 6e 67 20 22 |, or by |typing "|
|00000290| 73 68 20 3c 66 69 6c 65 | 22 2c 20 65 2e 67 2e 2e |sh <file|", e.g..|
|000002a0| 20 20 49 66 20 74 68 69 | 73 20 61 72 63 68 69 76 | If thi|s archiv|
|000002b0| 65 20 69 73 20 63 6f 6d | 70 6c 65 74 65 2c 20 79 |e is com|plete, y|
|000002c0| 6f 75 0a 23 20 77 69 6c | 6c 20 73 65 65 20 74 68 |ou.# wil|l see th|
|000002d0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6d 65 73 73 |e follow|ing mess|
|000002e0| 61 67 65 20 61 74 20 74 | 68 65 20 65 6e 64 3a 0a |age at t|he end:.|
|000002f0| 23 09 09 22 45 6e 64 20 | 6f 66 20 61 72 63 68 69 |#.."End |of archi|
|00000300| 76 65 20 32 20 28 6f 66 | 20 31 32 29 2e 22 0a 23 |ve 2 (of| 12).".#|
|00000310| 20 43 6f 6e 74 65 6e 74 | 73 3a 20 20 4e 65 77 49 | Content|s: NewI|
|00000320| 63 6f 6e 69 66 79 2e 63 | 20 61 77 6d 2e 6d 61 6e |conify.c| awm.man|
|00000330| 0a 23 20 57 72 61 70 70 | 65 64 20 62 79 20 6d 69 |.# Wrapp|ed by mi|
|00000340| 6b 65 77 40 77 79 73 65 | 20 6f 6e 20 46 72 69 20 |kew@wyse| on Fri |
|00000350| 46 65 62 20 31 37 20 31 | 30 3a 35 30 3a 32 30 20 |Feb 17 1|0:50:20 |
|00000360| 31 39 38 39 0a 50 41 54 | 48 3d 2f 62 69 6e 3a 2f |1989.PAT|H=/bin:/|
|00000370| 75 73 72 2f 62 69 6e 3a | 2f 75 73 72 2f 75 63 62 |usr/bin:|/usr/ucb|
|00000380| 20 3b 20 65 78 70 6f 72 | 74 20 50 41 54 48 0a 69 | ; expor|t PATH.i|
|00000390| 66 20 74 65 73 74 20 2d | 66 20 27 4e 65 77 49 63 |f test -|f 'NewIc|
|000003a0| 6f 6e 69 66 79 2e 63 27 | 20 2d 61 20 22 24 7b 31 |onify.c'| -a "${1|
|000003b0| 7d 22 20 21 3d 20 22 2d | 63 22 20 3b 20 74 68 65 |}" != "-|c" ; the|
|000003c0| 6e 20 0a 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |n . ech|o shar: |
|000003d0| 57 69 6c 6c 20 6e 6f 74 | 20 63 6c 6f 62 62 65 72 |Will not| clobber|
|000003e0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 5c | existin|g file \|
|000003f0| 22 27 4e 65 77 49 63 6f | 6e 69 66 79 2e 63 27 5c |"'NewIco|nify.c'\|
|00000400| 22 0a 65 6c 73 65 0a 65 | 63 68 6f 20 73 68 61 72 |".else.e|cho shar|
|00000410| 3a 20 45 78 74 72 61 63 | 74 69 6e 67 20 5c 22 27 |: Extrac|ting \"'|
|00000420| 4e 65 77 49 63 6f 6e 69 | 66 79 2e 63 27 5c 22 20 |NewIconi|fy.c'\" |
|00000430| 5c 28 31 31 30 30 34 20 | 63 68 61 72 61 63 74 65 |\(11004 |characte|
|00000440| 72 73 5c 29 0a 73 65 64 | 20 22 73 2f 5e 58 2f 2f |rs\).sed| "s/^X//|
|00000450| 22 20 3e 27 4e 65 77 49 | 63 6f 6e 69 66 79 2e 63 |" >'NewI|conify.c|
|00000460| 27 20 3c 3c 27 45 4e 44 | 5f 4f 46 5f 46 49 4c 45 |' <<'END|_OF_FILE|
|00000470| 27 0a 58 0a 58 0a 58 0a | 58 23 69 66 6e 64 65 66 |'.X.X.X.|X#ifndef|
|00000480| 20 6c 69 6e 74 0a 58 73 | 74 61 74 69 63 20 63 68 | lint.Xs|tatic ch|
|00000490| 61 72 20 2a 72 63 73 69 | 64 5f 4e 65 77 49 63 6f |ar *rcsi|d_NewIco|
|000004a0| 6e 69 66 79 5f 63 20 3d | 20 22 24 48 65 61 64 65 |nify_c =| "$Heade|
|000004b0| 72 3a 20 2f 75 73 72 2f | 67 72 61 70 68 32 2f 58 |r: /usr/|graph2/X|
|000004c0| 31 31 2e 33 2f 63 6f 6e | 74 72 69 62 2f 77 69 6e |11.3/con|trib/win|
|000004d0| 64 6f 77 6d 67 72 73 2f | 61 77 6d 2f 52 43 53 2f |dowmgrs/|awm/RCS/|
|000004e0| 4e 65 77 49 63 6f 6e 69 | 66 79 2e 63 2c 76 20 31 |NewIconi|fy.c,v 1|
|000004f0| 2e 32 20 38 39 2f 30 32 | 2f 30 37 20 32 31 3a 32 |.2 89/02|/07 21:2|
|00000500| 33 3a 31 30 20 6a 6b 68 | 20 45 78 70 20 24 22 3b |3:10 jkh| Exp $";|
|00000510| 0a 58 23 65 6e 64 69 66 | 20 20 6c 69 6e 74 0a 58 |.X#endif| lint.X|
|00000520| 0a 58 23 69 6e 63 6c 75 | 64 65 20 22 58 31 31 2f |.X#inclu|de "X11/|
|00000530| 63 6f 70 79 72 69 67 68 | 74 2e 68 22 0a 58 2f 2a |copyrigh|t.h".X/*|
|00000540| 0a 58 20 2a 0a 58 20 2a | 20 43 6f 70 79 72 69 67 |.X *.X *| Copyrig|
|00000550| 68 74 20 31 39 38 37 2c | 20 31 39 38 38 20 62 79 |ht 1987,| 1988 by|
|00000560| 20 41 72 64 65 6e 74 20 | 43 6f 6d 70 75 74 65 72 | Ardent |Computer|
|00000570| 20 43 6f 72 70 6f 72 61 | 74 69 6f 6e 2c 20 53 75 | Corpora|tion, Su|
|00000580| 6e 6e 79 76 61 6c 65 2c | 20 43 61 2e 0a 58 20 2a |nnyvale,| Ca..X *|
|00000590| 0a 58 20 2a 20 43 6f 70 | 79 72 69 67 68 74 20 31 |.X * Cop|yright 1|
|000005a0| 39 38 37 20 62 79 20 4a | 6f 72 64 61 6e 20 48 75 |987 by J|ordan Hu|
|000005b0| 62 62 61 72 64 2e 0a 58 | 20 2a 0a 58 20 2a 0a 58 |bbard..X| *.X *.X|
|000005c0| 20 2a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | * | |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 41 6c 6c 20 52 | | All R|
|000005e0| 69 67 68 74 73 20 52 65 | 73 65 72 76 65 64 0a 58 |ights Re|served.X|
|000005f0| 20 2a 0a 58 20 2a 20 50 | 65 72 6d 69 73 73 69 6f | *.X * P|ermissio|
|00000600| 6e 20 74 6f 20 75 73 65 | 2c 20 63 6f 70 79 2c 20 |n to use|, copy, |
|00000610| 6d 6f 64 69 66 79 2c 20 | 61 6e 64 20 64 69 73 74 |modify, |and dist|
|00000620| 72 69 62 75 74 65 20 74 | 68 69 73 20 73 6f 66 74 |ribute t|his soft|
|00000630| 77 61 72 65 20 61 6e 64 | 20 69 74 73 0a 58 20 2a |ware and| its.X *|
|00000640| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 66 | documen|tation f|
|00000650| 6f 72 20 61 6e 79 20 70 | 75 72 70 6f 73 65 20 61 |or any p|urpose a|
|00000660| 6e 64 20 77 69 74 68 6f | 75 74 20 66 65 65 20 69 |nd witho|ut fee i|
|00000670| 73 20 68 65 72 65 62 79 | 20 67 72 61 6e 74 65 64 |s hereby| granted|
|00000680| 2c 0a 58 20 2a 20 70 72 | 6f 76 69 64 65 64 20 74 |,.X * pr|ovided t|
|00000690| 68 61 74 20 74 68 65 20 | 61 62 6f 76 65 20 63 6f |hat the |above co|
|000006a0| 70 79 72 69 67 68 74 20 | 6e 6f 74 69 63 65 20 61 |pyright |notice a|
|000006b0| 70 70 65 61 72 20 69 6e | 20 61 6c 6c 20 63 6f 70 |ppear in| all cop|
|000006c0| 69 65 73 20 61 6e 64 20 | 74 68 61 74 0a 58 20 2a |ies and |that.X *|
|000006d0| 20 62 6f 74 68 20 74 68 | 61 74 20 63 6f 70 79 72 | both th|at copyr|
|000006e0| 69 67 68 74 20 6e 6f 74 | 69 63 65 20 61 6e 64 20 |ight not|ice and |
|000006f0| 74 68 69 73 20 70 65 72 | 6d 69 73 73 69 6f 6e 20 |this per|mission |
|00000700| 6e 6f 74 69 63 65 20 61 | 70 70 65 61 72 20 69 6e |notice a|ppear in|
|00000710| 0a 58 20 2a 20 73 75 70 | 70 6f 72 74 69 6e 67 20 |.X * sup|porting |
|00000720| 64 6f 63 75 6d 65 6e 74 | 61 74 69 6f 6e 2c 20 61 |document|ation, a|
|00000730| 6e 64 20 74 68 61 74 20 | 74 68 65 20 6e 61 6d 65 |nd that |the name|
|00000740| 20 6f 66 20 41 72 64 65 | 6e 74 20 43 6f 6d 70 75 | of Arde|nt Compu|
|00000750| 74 65 72 0a 58 20 2a 20 | 43 6f 72 70 6f 72 61 74 |ter.X * |Corporat|
|00000760| 69 6f 6e 20 6f 72 20 4a | 6f 72 64 61 6e 20 48 75 |ion or J|ordan Hu|
|00000770| 62 62 61 72 64 20 6e 6f | 74 20 62 65 20 75 73 65 |bbard no|t be use|
|00000780| 64 20 69 6e 20 61 64 76 | 65 72 74 69 73 69 6e 67 |d in adv|ertising|
|00000790| 20 6f 72 20 70 75 62 6c | 69 63 69 74 79 0a 58 20 | or publ|icity.X |
|000007a0| 2a 20 70 65 72 74 61 69 | 6e 69 6e 67 20 74 6f 20 |* pertai|ning to |
|000007b0| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 6f 66 20 |distribu|tion of |
|000007c0| 74 68 65 20 73 6f 66 74 | 77 61 72 65 20 77 69 74 |the soft|ware wit|
|000007d0| 68 6f 75 74 20 73 70 65 | 63 69 66 69 63 2c 20 77 |hout spe|cific, w|
|000007e0| 72 69 74 74 65 6e 0a 58 | 20 2a 20 70 72 69 6f 72 |ritten.X| * prior|
|000007f0| 20 70 65 72 6d 69 73 73 | 69 6f 6e 2e 0a 58 20 2a | permiss|ion..X *|
|00000800| 0a 58 20 2a 2f 0a 58 0a | 58 2f 2a 0a 58 20 2a 20 |.X */.X.|X/*.X * |
|00000810| 43 6f 70 79 72 69 67 68 | 74 20 31 39 38 37 20 62 |Copyrigh|t 1987 b|
|00000820| 79 20 44 69 67 69 74 61 | 6c 20 45 71 75 69 70 6d |y Digita|l Equipm|
|00000830| 65 6e 74 20 43 6f 72 70 | 6f 72 61 74 69 6f 6e 2c |ent Corp|oration,|
|00000840| 20 4d 61 79 6e 61 72 64 | 2c 20 4d 61 73 73 61 63 | Maynard|, Massac|
|00000850| 68 75 73 65 74 74 73 2e | 0a 58 20 2a 0a 58 20 2a |husetts.|.X *.X *|
|00000860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000870| 20 20 20 20 20 20 20 20 | 20 41 6c 6c 20 52 69 67 | | All Rig|
|00000880| 68 74 73 20 52 65 73 65 | 72 76 65 64 0a 58 20 2a |hts Rese|rved.X *|
|00000890| 0a 58 20 2a 20 50 65 72 | 6d 69 73 73 69 6f 6e 20 |.X * Per|mission |
|000008a0| 74 6f 20 75 73 65 2c 20 | 63 6f 70 79 2c 20 6d 6f |to use, |copy, mo|
|000008b0| 64 69 66 79 2c 20 61 6e | 64 20 64 69 73 74 72 69 |dify, an|d distri|
|000008c0| 62 75 74 65 20 74 68 69 | 73 20 73 6f 66 74 77 61 |bute thi|s softwa|
|000008d0| 72 65 20 61 6e 64 20 69 | 74 73 0a 58 20 2a 20 64 |re and i|ts.X * d|
|000008e0| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 66 6f 72 |ocumenta|tion for|
|000008f0| 20 61 6e 79 20 70 75 72 | 70 6f 73 65 20 61 6e 64 | any pur|pose and|
|00000900| 20 77 69 74 68 6f 75 74 | 20 66 65 65 20 69 73 20 | without| fee is |
|00000910| 68 65 72 65 62 79 20 67 | 72 61 6e 74 65 64 2c 0a |hereby g|ranted,.|
|00000920| 58 20 2a 20 70 72 6f 76 | 69 64 65 64 20 74 68 61 |X * prov|ided tha|
|00000930| 74 20 74 68 65 20 61 62 | 6f 76 65 20 63 6f 70 79 |t the ab|ove copy|
|00000940| 72 69 67 68 74 20 6e 6f | 74 69 63 65 20 61 70 70 |right no|tice app|
|00000950| 65 61 72 20 69 6e 20 61 | 6c 6c 20 63 6f 70 69 65 |ear in a|ll copie|
|00000960| 73 20 61 6e 64 20 74 68 | 61 74 0a 58 20 2a 20 62 |s and th|at.X * b|
|00000970| 6f 74 68 20 74 68 61 74 | 20 63 6f 70 79 72 69 67 |oth that| copyrig|
|00000980| 68 74 20 6e 6f 74 69 63 | 65 20 61 6e 64 20 74 68 |ht notic|e and th|
|00000990| 69 73 20 70 65 72 6d 69 | 73 73 69 6f 6e 20 6e 6f |is permi|ssion no|
|000009a0| 74 69 63 65 20 61 70 70 | 65 61 72 20 69 6e 0a 58 |tice app|ear in.X|
|000009b0| 20 2a 20 73 75 70 70 6f | 72 74 69 6e 67 20 64 6f | * suppo|rting do|
|000009c0| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 2c 20 61 6e 64 |cumentat|ion, and|
|000009d0| 20 74 68 61 74 20 74 68 | 65 20 6e 61 6d 65 20 6f | that th|e name o|
|000009e0| 66 20 44 69 67 69 74 61 | 6c 20 45 71 75 69 70 6d |f Digita|l Equipm|
|000009f0| 65 6e 74 0a 58 20 2a 20 | 43 6f 72 70 6f 72 61 74 |ent.X * |Corporat|
|00000a00| 69 6f 6e 20 6e 6f 74 20 | 62 65 20 75 73 65 64 20 |ion not |be used |
|00000a10| 69 6e 20 61 64 76 65 72 | 74 69 73 69 6e 67 20 6f |in adver|tising o|
|00000a20| 72 20 70 75 62 6c 69 63 | 69 74 79 20 70 65 72 74 |r public|ity pert|
|00000a30| 61 69 6e 69 6e 67 20 74 | 6f 0a 58 20 2a 20 64 69 |aining t|o.X * di|
|00000a40| 73 74 72 69 62 75 74 69 | 6f 6e 20 6f 66 20 74 68 |stributi|on of th|
|00000a50| 65 20 73 6f 66 74 77 61 | 72 65 20 77 69 74 68 6f |e softwa|re witho|
|00000a60| 75 74 20 73 70 65 63 69 | 66 69 63 2c 20 77 72 69 |ut speci|fic, wri|
|00000a70| 74 74 65 6e 20 70 72 69 | 6f 72 20 70 65 72 6d 69 |tten pri|or permi|
|00000a80| 73 73 69 6f 6e 2e 0a 58 | 20 2a 0a 58 20 2a 0a 58 |ssion..X| *.X *.X|
|00000a90| 20 2a 20 44 49 47 49 54 | 41 4c 20 44 49 53 43 4c | * DIGIT|AL DISCL|
|00000aa0| 41 49 4d 53 20 41 4c 4c | 20 57 41 52 52 41 4e 54 |AIMS ALL| WARRANT|
|00000ab0| 49 45 53 20 57 49 54 48 | 20 52 45 47 41 52 44 20 |IES WITH| REGARD |
|00000ac0| 54 4f 20 54 48 49 53 20 | 53 4f 46 54 57 41 52 45 |TO THIS |SOFTWARE|
|00000ad0| 2c 20 49 4e 43 4c 55 44 | 49 4e 47 0a 58 20 2a 20 |, INCLUD|ING.X * |
|00000ae0| 41 4c 4c 20 49 4d 50 4c | 49 45 44 20 57 41 52 52 |ALL IMPL|IED WARR|
|00000af0| 41 4e 54 49 45 53 20 4f | 46 20 4d 45 52 43 48 41 |ANTIES O|F MERCHA|
|00000b00| 4e 54 41 42 49 4c 49 54 | 59 20 41 4e 44 20 46 49 |NTABILIT|Y AND FI|
|00000b10| 54 4e 45 53 53 2c 20 49 | 4e 20 4e 4f 20 45 56 45 |TNESS, I|N NO EVE|
|00000b20| 4e 54 20 53 48 41 4c 4c | 0a 58 20 2a 20 44 49 47 |NT SHALL|.X * DIG|
|00000b30| 49 54 41 4c 20 42 45 20 | 4c 49 41 42 4c 45 20 46 |ITAL BE |LIABLE F|
|00000b40| 4f 52 20 41 4e 59 20 53 | 50 45 43 49 41 4c 2c 20 |OR ANY S|PECIAL, |
|00000b50| 49 4e 44 49 52 45 43 54 | 20 4f 52 20 43 4f 4e 53 |INDIRECT| OR CONS|
|00000b60| 45 51 55 45 4e 54 49 41 | 4c 20 44 41 4d 41 47 45 |EQUENTIA|L DAMAGE|
|00000b70| 53 20 4f 52 0a 58 20 2a | 20 41 4e 59 20 44 41 4d |S OR.X *| ANY DAM|
|00000b80| 41 47 45 53 20 57 48 41 | 54 53 4f 45 56 45 52 20 |AGES WHA|TSOEVER |
|00000b90| 52 45 53 55 4c 54 49 4e | 47 20 46 52 4f 4d 20 4c |RESULTIN|G FROM L|
|00000ba0| 4f 53 53 20 4f 46 20 55 | 53 45 2c 20 44 41 54 41 |OSS OF U|SE, DATA|
|00000bb0| 20 4f 52 20 50 52 4f 46 | 49 54 53 2c 0a 58 20 2a | OR PROF|ITS,.X *|
|00000bc0| 20 57 48 45 54 48 45 52 | 20 49 4e 20 41 4e 20 41 | WHETHER| IN AN A|
|00000bd0| 43 54 49 4f 4e 20 4f 46 | 20 43 4f 4e 54 52 41 43 |CTION OF| CONTRAC|
|00000be0| 54 2c 20 4e 45 47 4c 49 | 47 45 4e 43 45 20 4f 52 |T, NEGLI|GENCE OR|
|00000bf0| 20 4f 54 48 45 52 20 54 | 4f 52 54 49 4f 55 53 20 | OTHER T|ORTIOUS |
|00000c00| 41 43 54 49 4f 4e 2c 0a | 58 20 2a 20 41 52 49 53 |ACTION,.|X * ARIS|
|00000c10| 49 4e 47 20 4f 55 54 20 | 4f 46 20 4f 52 20 49 4e |ING OUT |OF OR IN|
|00000c20| 20 43 4f 4e 4e 45 43 54 | 49 4f 4e 20 57 49 54 48 | CONNECT|ION WITH|
|00000c30| 20 54 48 45 20 55 53 45 | 20 4f 52 20 50 45 52 46 | THE USE| OR PERF|
|00000c40| 4f 52 4d 41 4e 43 45 20 | 4f 46 20 54 48 49 53 0a |ORMANCE |OF THIS.|
|00000c50| 58 20 2a 20 53 4f 46 54 | 57 41 52 45 2e 0a 58 20 |X * SOFT|WARE..X |
|00000c60| 2a 2f 0a 58 0a 58 2f 2a | 0a 58 20 2a 20 4d 4f 44 |*/.X.X/*|.X * MOD|
|00000c70| 49 46 49 43 41 54 49 4f | 4e 20 48 49 53 54 4f 52 |IFICATIO|N HISTOR|
|00000c80| 59 0a 58 20 2a 0a 58 20 | 2a 20 30 30 30 20 2d 2d |Y.X *.X |* 000 --|
|00000c90| 20 4d 2e 20 47 61 6e 63 | 61 72 7a 2c 20 44 45 43 | M. Ganc|arz, DEC|
|00000ca0| 20 55 6c 74 72 69 78 20 | 45 6e 67 69 6e 65 65 72 | Ultrix |Engineer|
|00000cb0| 69 6e 67 20 47 72 6f 75 | 70 0a 58 20 2a 20 30 30 |ing Grou|p.X * 00|
|00000cc0| 31 20 2d 2d 20 4c 6f 72 | 65 74 74 61 20 47 75 61 |1 -- Lor|etta Gua|
|00000cd0| 72 69 6e 6f 20 52 65 69 | 64 2c 20 44 45 43 20 55 |rino Rei|d, DEC U|
|00000ce0| 6c 74 72 69 78 20 45 6e | 67 69 6e 65 65 72 69 6e |ltrix En|gineerin|
|00000cf0| 67 20 47 72 6f 75 70 2c | 0a 58 20 2a 20 20 57 65 |g Group,|.X * We|
|00000d00| 73 74 65 72 6e 20 53 6f | 66 74 77 61 72 65 20 4c |stern So|ftware L|
|00000d10| 61 62 2e 20 50 6f 72 74 | 20 74 6f 20 58 31 31 2e |ab. Port| to X11.|
|00000d20| 0a 58 20 2a 2f 0a 58 0a | 58 23 69 6e 63 6c 75 64 |.X */.X.|X#includ|
|00000d30| 65 20 22 61 77 6d 2e 68 | 22 0a 58 0a 58 2f 2a 41 |e "awm.h|".X.X/*A|
|00000d40| 52 47 53 55 53 45 44 2a | 2f 0a 58 42 6f 6f 6c 65 |RGSUSED*|/.XBoole|
|00000d50| 61 6e 20 4e 65 77 49 63 | 6f 6e 69 66 79 28 77 69 |an NewIc|onify(wi|
|00000d60| 6e 64 6f 77 2c 20 6d 61 | 73 6b 2c 20 62 75 74 74 |ndow, ma|sk, butt|
|00000d70| 6f 6e 2c 20 78 2c 20 79 | 29 0a 58 57 69 6e 64 6f |on, x, y|).XWindo|
|00000d80| 77 20 77 69 6e 64 6f 77 | 3b 20 20 20 20 20 20 20 |w window|; |
|00000d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000da0| 20 20 20 2f 2a 20 45 76 | 65 6e 74 20 77 69 6e 64 | /* Ev|ent wind|
|00000db0| 6f 77 2e 20 2a 2f 0a 58 | 69 6e 74 20 6d 61 73 6b |ow. */.X|int mask|
|00000dc0| 3b 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |; | |
|00000dd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000de0| 2f 2a 20 42 75 74 74 6f | 6e 2f 6b 65 79 20 6d 61 |/* Butto|n/key ma|
|00000df0| 73 6b 2e 20 2a 2f 0a 58 | 69 6e 74 20 62 75 74 74 |sk. */.X|int butt|
|00000e00| 6f 6e 3b 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |on; | |
|00000e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e20| 2f 2a 20 42 75 74 74 6f | 6e 20 65 76 65 6e 74 20 |/* Butto|n event |
|00000e30| 64 65 74 61 69 6c 2e 20 | 2a 2f 0a 58 69 6e 74 20 |detail. |*/.Xint |
|00000e40| 78 2c 20 79 3b 20 20 20 | 20 20 20 20 20 20 20 20 |x, y; | |
|00000e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e60| 20 20 20 20 2f 2a 20 45 | 76 65 6e 74 20 6d 6f 75 | /* E|vent mou|
|00000e70| 73 65 20 70 6f 73 69 74 | 69 6f 6e 2e 20 2a 2f 0a |se posit|ion. */.|
|00000e80| 58 7b 0a 58 20 20 20 20 | 20 58 57 69 6e 64 6f 77 |X{.X | XWindow|
|00000e90| 41 74 74 72 69 62 75 74 | 65 73 20 66 72 6f 6d 49 |Attribut|es fromI|
|00000ea0| 6e 66 6f 3b 09 2f 2a 20 | 66 72 6f 6d 20 77 69 6e |nfo;./* |from win|
|00000eb0| 64 6f 77 20 69 6e 66 6f | 2e 20 2a 2f 0a 58 20 20 |dow info|. */.X |
|00000ec0| 20 20 20 58 57 69 6e 64 | 6f 77 41 74 74 72 69 62 | XWind|owAttrib|
|00000ed0| 75 74 65 73 20 74 6f 49 | 6e 66 6f 3b 09 09 2f 2a |utes toI|nfo;../*|
|00000ee0| 20 74 6f 20 77 69 6e 64 | 6f 77 20 69 6e 66 6f 2e | to wind|ow info.|
|00000ef0| 20 2a 2f 0a 58 20 20 20 | 20 20 57 69 6e 64 6f 77 | */.X | Window|
|00000f00| 20 66 72 6f 6d 2c 20 74 | 6f 3b 0a 58 20 20 20 20 | from, t|o;.X |
|00000f10| 20 69 6e 74 20 6d 73 65 | 5f 78 2c 20 6d 73 65 5f | int mse|_x, mse_|
|00000f20| 79 3b 09 09 09 2f 2a 20 | 4d 6f 75 73 65 20 58 20 |y;.../* |Mouse X |
|00000f30| 61 6e 64 20 59 20 63 6f | 6f 72 64 69 6e 61 74 65 |and Y co|ordinate|
|00000f40| 73 2e 20 2a 2f 0a 58 20 | 20 20 20 20 69 6e 74 20 |s. */.X | int |
|00000f50| 6e 65 77 5f 78 2c 20 6e | 65 77 5f 79 3b 09 09 09 |new_x, n|ew_y;...|
|00000f60| 2f 2a 20 54 6f 20 55 2e | 20 4c 2e 20 58 20 61 6e |/* To U.| L. X an|
|00000f70| 64 20 59 20 63 6f 6f 72 | 64 69 6e 61 74 65 73 2e |d Y coor|dinates.|
|00000f80| 20 2a 2f 0a 58 20 20 20 | 20 20 69 6e 74 20 6e 65 | */.X | int ne|
|00000f90| 77 5f 77 2c 20 6e 65 77 | 5f 68 3b 09 09 09 2f 2a |w_w, new|_h;.../*|
|00000fa0| 20 54 6f 20 77 69 64 74 | 68 20 61 6e 64 20 68 65 | To widt|h and he|
|00000fb0| 69 67 68 74 2e 20 2a 2f | 0a 58 20 20 20 20 20 69 |ight. */|.X i|
|00000fc0| 6e 74 20 62 64 77 3b 09 | 09 09 09 2f 2a 20 62 6f |nt bdw;.|.../* bo|
|00000fd0| 72 64 65 72 20 77 69 64 | 74 68 20 2a 2f 0a 58 20 |rder wid|th */.X |
|00000fe0| 20 20 20 20 69 6e 74 20 | 70 72 65 76 5f 78 3b 09 | int |prev_x;.|
|00000ff0| 09 09 2f 2a 20 50 72 65 | 76 69 6f 75 73 20 65 76 |../* Pre|vious ev|
|00001000| 65 6e 74 20 77 69 6e 64 | 6f 77 20 58 20 6c 6f 63 |ent wind|ow X loc|
|00001010| 61 74 69 6f 6e 2e 20 2a | 2f 0a 58 20 20 20 20 20 |ation. *|/.X |
|00001020| 69 6e 74 20 70 72 65 76 | 5f 79 3b 09 09 09 2f 2a |int prev|_y;.../*|
|00001030| 20 50 72 65 76 69 6f 75 | 73 20 65 76 65 6e 74 20 | Previou|s event |
|00001040| 77 69 6e 64 6f 77 20 59 | 20 6c 6f 63 61 74 69 6f |window Y| locatio|
|00001050| 6e 2e 20 2a 2f 0a 58 20 | 20 20 20 20 69 6e 74 20 |n. */.X | int |
|00001060| 63 75 72 5f 78 3b 09 09 | 09 09 2f 2a 20 43 75 72 |cur_x;..|../* Cur|
|00001070| 72 65 6e 74 20 65 76 65 | 6e 74 20 77 69 6e 64 6f |rent eve|nt windo|
|00001080| 77 20 58 20 6c 6f 63 61 | 74 69 6f 6e 2e 20 2a 2f |w X loca|tion. */|
|00001090| 0a 58 20 20 20 20 20 69 | 6e 74 20 63 75 72 5f 79 |.X i|nt cur_y|
|000010a0| 3b 09 09 09 09 2f 2a 20 | 43 75 72 72 65 6e 74 20 |;..../* |Current |
|000010b0| 65 76 65 6e 74 20 77 69 | 6e 64 6f 77 20 59 20 6c |event wi|ndow Y l|
|000010c0| 6f 63 61 74 69 6f 6e 2e | 20 2a 2f 0a 58 20 20 20 |ocation.| */.X |
|000010d0| 20 20 69 6e 74 20 72 6f | 6f 74 5f 78 3b 09 09 09 | int ro|ot_x;...|
|000010e0| 2f 2a 20 52 6f 6f 74 20 | 77 69 6e 64 6f 77 20 58 |/* Root |window X|
|000010f0| 20 6c 6f 63 61 74 69 6f | 6e 2e 20 2a 2f 0a 58 20 | locatio|n. */.X |
|00001100| 20 20 20 20 69 6e 74 20 | 72 6f 6f 74 5f 79 3b 09 | int |root_y;.|
|00001110| 09 09 2f 2a 20 52 6f 6f | 74 20 77 69 6e 64 6f 77 |../* Roo|t window|
|00001120| 20 59 20 6c 6f 63 61 74 | 69 6f 6e 2e 20 2a 2f 0a | Y locat|ion. */.|
|00001130| 58 20 20 20 20 20 69 6e | 74 20 75 6c 78 2c 20 75 |X in|t ulx, u|
|00001140| 6c 79 3b 09 09 09 2f 2a | 20 45 76 65 6e 74 20 77 |ly;.../*| Event w|
|00001150| 69 6e 64 6f 77 20 75 70 | 70 65 72 20 6c 65 66 74 |indow up|per left|
|00001160| 20 58 20 61 6e 64 20 59 | 2e 20 2a 2f 0a 58 20 20 | X and Y|. */.X |
|00001170| 20 20 20 69 6e 74 20 6c | 72 78 2c 20 6c 72 79 3b | int l|rx, lry;|
|00001180| 09 09 09 2f 2a 20 45 76 | 65 6e 74 20 77 69 6e 64 |.../* Ev|ent wind|
|00001190| 6f 77 20 6c 6f 77 65 72 | 20 72 69 67 68 74 20 58 |ow lower| right X|
|000011a0| 20 61 6e 64 20 59 2e 20 | 2a 2f 0a 58 20 20 20 20 | and Y. |*/.X |
|000011b0| 20 69 6e 74 20 6e 75 6d | 5f 76 65 63 74 6f 72 73 | int num|_vectors|
|000011c0| 3b 09 09 09 2f 2a 20 4e | 75 6d 62 65 72 20 6f 66 |;.../* N|umber of|
|000011d0| 20 76 65 63 74 6f 72 73 | 20 69 6e 20 62 6f 78 2e | vectors| in box.|
|000011e0| 20 2a 2f 0a 58 20 20 20 | 20 20 69 6e 74 20 73 74 | */.X | int st|
|000011f0| 61 74 75 73 3b 09 09 09 | 09 2f 2a 20 52 6f 75 74 |atus;...|./* Rout|
|00001200| 69 6e 65 20 63 61 6c 6c | 20 72 65 74 75 72 6e 20 |ine call| return |
|00001210| 73 74 61 74 75 73 2e 20 | 2a 2f 0a 58 20 20 20 20 |status. |*/.X |
|00001220| 20 69 6e 74 20 70 74 72 | 6d 61 73 6b 3b 09 09 09 | int ptr|mask;...|
|00001230| 2f 2a 20 70 6f 69 6e 74 | 65 72 20 71 75 65 72 79 |/* point|er query|
|00001240| 20 73 74 61 74 65 2e 20 | 2a 2f 0a 58 20 20 20 20 | state. |*/.X |
|00001250| 20 57 69 6e 64 6f 77 20 | 72 6f 6f 74 3b 09 09 09 | Window |root;...|
|00001260| 2f 2a 20 4d 6f 75 73 65 | 20 72 6f 6f 74 20 77 69 |/* Mouse| root wi|
|00001270| 6e 64 6f 77 2e 20 2a 2f | 0a 58 20 20 20 20 20 57 |ndow. */|.X W|
|00001280| 69 6e 64 6f 77 20 73 75 | 62 5f 77 69 6e 3b 09 09 |indow su|b_win;..|
|00001290| 09 2f 2a 20 4d 6f 75 73 | 65 20 70 6f 73 69 74 69 |./* Mous|e positi|
|000012a0| 6f 6e 20 73 75 62 2d 77 | 69 6e 64 6f 77 2e 20 2a |on sub-w|indow. *|
|000012b0| 2f 0a 58 20 20 20 20 20 | 58 45 76 65 6e 74 20 62 |/.X |XEvent b|
|000012c0| 75 74 74 6f 6e 5f 65 76 | 65 6e 74 3b 09 09 2f 2a |utton_ev|ent;../*|
|000012d0| 20 42 75 74 74 6f 6e 20 | 65 76 65 6e 74 20 70 61 | Button |event pa|
|000012e0| 63 6b 65 74 2e 20 2a 2f | 0a 58 20 20 20 20 20 58 |cket. */|.X X|
|000012f0| 53 65 67 6d 65 6e 74 20 | 62 6f 78 5b 4d 41 58 5f |Segment |box[MAX_|
|00001300| 42 4f 58 5f 56 45 43 54 | 4f 52 53 5d 3b 09 2f 2a |BOX_VECT|ORS];./*|
|00001310| 20 42 6f 78 20 76 65 72 | 74 65 78 20 62 75 66 66 | Box ver|tex buff|
|00001320| 65 72 2e 20 2a 2f 0a 58 | 20 20 20 20 20 58 53 65 |er. */.X| XSe|
|00001330| 67 6d 65 6e 74 20 7a 61 | 70 5b 4d 41 58 5f 5a 41 |gment za|p[MAX_ZA|
|00001340| 50 5f 56 45 43 54 4f 52 | 53 5d 3b 09 2f 2a 20 5a |P_VECTOR|S];./* Z|
|00001350| 61 70 20 65 66 66 65 63 | 74 20 76 65 72 74 65 78 |ap effec|t vertex|
|00001360| 20 62 75 66 66 65 72 2e | 20 2a 2f 0a 58 20 20 20 | buffer.| */.X |
|00001370| 20 20 69 6e 74 20 28 2a | 73 74 6f 72 65 67 72 69 | int (*|storegri|
|00001380| 64 5f 66 75 6e 63 29 28 | 29 3b 09 09 2f 2a 20 46 |d_func)(|);../* F|
|00001390| 75 6e 63 74 69 6f 6e 20 | 74 6f 20 75 73 65 20 66 |unction |to use f|
|000013a0| 6f 72 20 67 72 69 64 20 | 2a 2f 0a 58 20 20 20 20 |or grid |*/.X |
|000013b0| 20 69 6e 74 20 28 2a 73 | 74 6f 72 65 62 6f 78 5f | int (*s|torebox_|
|000013c0| 66 75 6e 63 29 28 29 3b | 09 09 2f 2a 20 46 75 6e |func)();|../* Fun|
|000013d0| 63 74 69 6f 6e 20 74 6f | 20 75 73 65 20 66 6f 72 |ction to| use for|
|000013e0| 20 62 6f 78 20 2a 2f 0a | 58 20 20 20 20 20 41 77 | box */.|X Aw|
|000013f0| 6d 49 6e 66 6f 50 74 72 | 20 61 77 69 3b 0a 58 20 |mInfoPtr| awi;.X |
|00001400| 20 20 20 20 65 78 74 65 | 72 6e 20 57 69 6e 64 6f | exte|rn Windo|
|00001410| 77 20 4d 61 6b 65 49 63 | 6f 6e 28 29 3b 0a 58 20 |w MakeIc|on();.X |
|00001420| 20 20 20 20 65 78 74 65 | 72 6e 20 76 6f 69 64 20 | exte|rn void |
|00001430| 75 6e 67 72 61 62 5f 70 | 6f 69 6e 74 65 72 28 29 |ungrab_p|ointer()|
|00001440| 3b 0a 58 20 20 20 20 20 | 65 78 74 65 72 6e 20 76 |;.X |extern v|
|00001450| 6f 69 64 20 67 72 61 62 | 5f 70 6f 69 6e 74 65 72 |oid grab|_pointer|
|00001460| 28 29 3b 0a 58 20 20 20 | 20 20 0a 58 20 20 20 20 |();.X | .X |
|00001470| 20 45 6e 74 72 79 28 22 | 4e 65 77 49 63 6f 6e 69 | Entry("|NewIconi|
|00001480| 66 79 22 29 0a 58 09 20 | 20 0a 58 20 20 20 20 20 |fy").X. | .X |
|00001490| 2f 2a 0a 58 20 20 20 20 | 20 20 2a 20 44 6f 20 6e |/*.X | * Do n|
|000014a0| 6f 74 20 6c 6f 77 65 72 | 20 6f 72 20 69 63 6f 6e |ot lower| or icon|
|000014b0| 69 66 79 20 74 68 65 20 | 72 6f 6f 74 20 77 69 6e |ify the |root win|
|000014c0| 64 6f 77 2e 0a 58 20 20 | 20 20 20 20 2a 2f 0a 58 |dow..X | */.X|
|000014d0| 20 20 20 20 20 69 66 20 | 28 77 69 6e 64 6f 77 20 | if |(window |
|000014e0| 3d 3d 20 52 6f 6f 74 57 | 69 6e 64 6f 77 28 64 70 |== RootW|indow(dp|
|000014f0| 79 2c 20 73 63 72 29 29 | 0a 58 09 20 20 4c 65 61 |y, scr))|.X. Lea|
|00001500| 76 65 28 46 41 4c 53 45 | 29 0a 58 20 20 20 20 20 |ve(FALSE|).X |
|00001510| 0a 58 20 20 20 20 20 2f | 2a 0a 58 20 20 20 20 20 |.X /|*.X |
|00001520| 20 2a 20 43 68 61 6e 67 | 65 20 74 68 65 20 63 75 | * Chang|e the cu|
|00001530| 72 73 6f 72 20 74 6f 20 | 74 68 65 20 69 63 6f 6e |rsor to |the icon|
|00001540| 20 63 75 72 73 6f 72 2e | 0a 58 20 20 20 20 20 20 | cursor.|.X |
|00001550| 2a 2f 0a 58 20 20 20 20 | 20 67 72 61 62 5f 70 6f |*/.X | grab_po|
|00001560| 69 6e 74 65 72 28 29 3b | 0a 58 20 20 20 20 20 0a |inter();|.X .|
|00001570| 58 20 20 20 20 20 2f 2a | 0a 58 20 20 20 20 20 20 |X /*|.X |
|00001580| 2a 20 43 6c 65 61 72 20 | 74 68 65 20 76 65 63 74 |* Clear |the vect|
|00001590| 6f 72 20 62 75 66 66 65 | 72 73 2e 0a 58 20 20 20 |or buffe|rs..X |
|000015a0| 20 20 20 2a 2f 0a 58 20 | 20 20 20 20 62 7a 65 72 | */.X | bzer|
|000015b0| 6f 28 62 6f 78 2c 20 73 | 69 7a 65 6f 66 28 62 6f |o(box, s|izeof(bo|
|000015c0| 78 29 29 3b 0a 58 20 20 | 20 20 20 69 66 20 28 5a |x));.X | if (Z|
|000015d0| 61 70 29 0a 58 09 20 20 | 62 7a 65 72 6f 28 7a 61 |ap).X. |bzero(za|
|000015e0| 70 2c 20 73 69 7a 65 6f | 66 28 7a 61 70 29 29 3b |p, sizeo|f(zap));|
|000015f0| 0a 58 20 20 20 20 20 0a | 58 20 20 20 20 20 2f 2a |.X .|X /*|
|00001600| 0a 58 20 20 20 20 20 20 | 2a 20 47 65 74 20 69 6e |.X |* Get in|
|00001610| 66 6f 20 6f 6e 20 74 68 | 65 20 65 76 65 6e 74 20 |fo on th|e event |
|00001620| 77 69 6e 64 6f 77 2e 0a | 58 20 20 20 20 20 20 2a |window..|X *|
|00001630| 2f 0a 58 20 20 20 20 20 | 61 77 69 20 3d 20 47 65 |/.X |awi = Ge|
|00001640| 74 41 77 6d 49 6e 66 6f | 28 77 69 6e 64 6f 77 29 |tAwmInfo|(window)|
|00001650| 3b 0a 58 20 20 20 20 20 | 69 66 20 28 21 61 77 69 |;.X |if (!awi|
|00001660| 29 0a 58 09 20 20 4c 65 | 61 76 65 28 46 41 4c 53 |).X. Le|ave(FALS|
|00001670| 45 29 0a 58 20 20 20 20 | 20 2f 2a 0a 58 20 20 20 |E).X | /*.X |
|00001680| 20 20 20 2a 20 41 72 65 | 20 77 65 20 69 63 6f 6e | * Are| we icon|
|00001690| 69 66 79 69 6e 67 20 6f | 72 20 64 65 2d 69 63 6f |ifying o|r de-ico|
|000016a0| 6e 69 66 79 69 6e 67 3f | 0a 58 20 20 20 20 20 20 |nifying?|.X |
|000016b0| 2a 2f 0a 58 20 20 20 20 | 20 69 66 20 28 61 77 69 |*/.X | if (awi|
|000016c0| 2d 3e 73 74 61 74 65 20 | 26 20 53 54 5f 49 43 4f |->state |& ST_ICO|
|000016d0| 4e 29 20 7b 0a 58 20 20 | 20 20 20 20 20 20 20 20 |N) {.X | |
|000016e0| 66 72 6f 6d 20 3d 20 61 | 77 69 2d 3e 69 63 6f 6e |from = a|wi->icon|
|000016f0| 3b 0a 58 20 20 20 20 20 | 20 20 20 20 20 74 6f 20 |;.X | to |
|00001700| 3d 20 28 61 77 69 2d 3e | 66 72 61 6d 65 29 20 3f |= (awi->|frame) ?|
|00001710| 20 61 77 69 2d 3e 66 72 | 61 6d 65 20 3a 20 61 77 | awi->fr|ame : aw|
|00001720| 69 2d 3e 63 6c 69 65 6e | 74 3b 0a 58 20 20 20 20 |i->clien|t;.X |
|00001730| 20 7d 0a 58 20 20 20 20 | 20 65 6c 73 65 20 69 66 | }.X | else if|
|00001740| 20 28 61 77 69 2d 3e 73 | 74 61 74 65 20 26 20 53 | (awi->s|tate & S|
|00001750| 54 5f 57 49 4e 44 4f 57 | 29 20 7b 0a 58 20 20 20 |T_WINDOW|) {.X |
|00001760| 20 20 20 20 20 20 20 66 | 72 6f 6d 20 3d 20 28 61 | f|rom = (a|
|00001770| 77 69 2d 3e 66 72 61 6d | 65 29 20 3f 20 61 77 69 |wi->fram|e) ? awi|
|00001780| 2d 3e 66 72 61 6d 65 20 | 3a 20 61 77 69 2d 3e 63 |->frame |: awi->c|
|00001790| 6c 69 65 6e 74 3b 0a 58 | 20 20 20 20 20 20 20 20 |lient;.X| |
|000017a0| 20 20 74 6f 20 3d 20 28 | 61 77 69 2d 3e 69 63 6f | to = (|awi->ico|
|000017b0| 6e 29 20 3f 20 61 77 69 | 2d 3e 69 63 6f 6e 20 3a |n) ? awi|->icon :|
|000017c0| 20 4d 61 6b 65 49 63 6f | 6e 28 77 69 6e 64 6f 77 | MakeIco|n(window|
|000017d0| 2c 20 78 2c 20 79 2c 20 | 46 41 4c 53 45 29 3b 0a |, x, y, |FALSE);.|
|000017e0| 58 20 20 20 20 20 7d 0a | 58 20 20 20 20 20 65 6c |X }.|X el|
|000017f0| 73 65 20 7b 0a 58 20 20 | 20 20 20 20 20 20 20 20 |se {.X | |
|00001800| 66 70 72 69 6e 74 66 28 | 73 74 64 65 72 72 2c 20 |fprintf(|stderr, |
|00001810| 22 4e 65 77 49 63 6f 6e | 69 66 79 3a 20 57 69 6e |"NewIcon|ify: Win|
|00001820| 64 6f 77 20 25 78 20 68 | 61 73 20 75 6e 6b 6e 6f |dow %x h|as unkno|
|00001830| 77 6e 20 73 74 61 74 65 | 20 27 25 78 27 5c 6e 22 |wn state| '%x'\n"|
|00001840| 2c 0a 58 09 09 20 61 77 | 69 2d 3e 63 6c 69 65 6e |,.X.. aw|i->clien|
|00001850| 74 2c 20 61 77 69 2d 3e | 73 74 61 74 65 29 3b 0a |t, awi->|state);.|
|00001860| 58 09 20 20 4c 65 61 76 | 65 28 46 41 4c 53 45 29 |X. Leav|e(FALSE)|
|00001870| 0a 58 20 20 20 20 20 7d | 0a 58 20 20 20 20 20 73 |.X }|.X s|
|00001880| 74 61 74 75 73 20 3d 20 | 58 47 65 74 57 69 6e 64 |tatus = |XGetWind|
|00001890| 6f 77 41 74 74 72 69 62 | 75 74 65 73 28 64 70 79 |owAttrib|utes(dpy|
|000018a0| 2c 20 66 72 6f 6d 2c 20 | 26 66 72 6f 6d 49 6e 66 |, from, |&fromInf|
|000018b0| 6f 29 3b 0a 58 20 20 20 | 20 20 69 66 20 28 73 74 |o);.X | if (st|
|000018c0| 61 74 75 73 20 3d 3d 20 | 46 41 49 4c 55 52 45 29 |atus == |FAILURE)|
|000018d0| 0a 58 20 20 20 20 20 20 | 20 20 20 20 4c 65 61 76 |.X | Leav|
|000018e0| 65 28 46 41 4c 53 45 29 | 0a 58 0a 58 20 20 20 20 |e(FALSE)|.X.X |
|000018f0| 20 73 74 61 74 75 73 20 | 3d 20 58 47 65 74 57 69 | status |= XGetWi|
|00001900| 6e 64 6f 77 41 74 74 72 | 69 62 75 74 65 73 28 64 |ndowAttr|ibutes(d|
|00001910| 70 79 2c 20 74 6f 2c 20 | 26 74 6f 49 6e 66 6f 29 |py, to, |&toInfo)|
|00001920| 3b 0a 58 20 20 20 20 20 | 69 66 20 28 73 74 61 74 |;.X |if (stat|
|00001930| 75 73 20 3d 3d 20 46 41 | 49 4c 55 52 45 29 0a 58 |us == FA|ILURE).X|
|00001940| 20 20 20 20 20 20 20 20 | 20 20 4c 65 61 76 65 28 | | Leave(|
|00001950| 46 41 4c 53 45 29 0a 58 | 0a 58 20 20 20 20 20 2f |FALSE).X|.X /|
|00001960| 2a 0a 58 20 20 20 20 20 | 20 2a 20 49 6e 69 74 69 |*.X | * Initi|
|00001970| 61 6c 69 7a 65 20 74 68 | 65 20 6d 6f 76 65 6d 65 |alize th|e moveme|
|00001980| 6e 74 20 76 61 72 69 61 | 62 6c 65 73 2e 0a 58 20 |nt varia|bles..X |
|00001990| 20 20 20 20 20 2a 2f 0a | 58 20 20 20 20 20 75 6c | */.|X ul|
|000019a0| 78 20 3d 20 78 20 2d 20 | 28 74 6f 49 6e 66 6f 2e |x = x - |(toInfo.|
|000019b0| 77 69 64 74 68 20 3e 3e | 20 31 29 20 2d 20 74 6f |width >>| 1) - to|
|000019c0| 49 6e 66 6f 2e 62 6f 72 | 64 65 72 5f 77 69 64 74 |Info.bor|der_widt|
|000019d0| 68 3b 0a 58 20 20 20 20 | 20 75 6c 79 20 3d 20 79 |h;.X | uly = y|
|000019e0| 20 2d 20 28 74 6f 49 6e | 66 6f 2e 68 65 69 67 68 | - (toIn|fo.heigh|
|000019f0| 74 20 3e 3e 20 31 29 20 | 2d 20 74 6f 49 6e 66 6f |t >> 1) |- toInfo|
|00001a00| 2e 62 6f 72 64 65 72 5f | 77 69 64 74 68 3b 0a 58 |.border_|width;.X|
|00001a10| 20 20 20 20 20 6c 72 78 | 20 3d 20 78 20 2b 20 28 | lrx| = x + (|
|00001a20| 74 6f 49 6e 66 6f 2e 77 | 69 64 74 68 20 3e 3e 20 |toInfo.w|idth >> |
|00001a30| 31 29 20 2b 20 74 6f 49 | 6e 66 6f 2e 62 6f 72 64 |1) + toI|nfo.bord|
|00001a40| 65 72 5f 77 69 64 74 68 | 20 2d 20 31 3b 0a 58 20 |er_width| - 1;.X |
|00001a50| 20 20 20 20 6c 72 79 20 | 3d 20 79 20 2b 20 28 74 | lry |= y + (t|
|00001a60| 6f 49 6e 66 6f 2e 68 65 | 69 67 68 74 20 3e 3e 20 |oInfo.he|ight >> |
|00001a70| 31 29 20 2b 20 74 6f 49 | 6e 66 6f 2e 62 6f 72 64 |1) + toI|nfo.bord|
|00001a80| 65 72 5f 77 69 64 74 68 | 20 2d 20 31 3b 0a 58 20 |er_width| - 1;.X |
|00001a90| 20 20 20 20 70 72 65 76 | 5f 78 20 3d 20 78 3b 0a | prev|_x = x;.|
|00001aa0| 58 20 20 20 20 20 70 72 | 65 76 5f 79 20 3d 20 79 |X pr|ev_y = y|
|00001ab0| 3b 0a 58 0a 58 20 20 20 | 20 20 69 66 20 28 61 77 |;.X.X | if (aw|
|00001ac0| 69 2d 3e 66 72 61 6d 65 | 20 26 26 20 61 77 69 2d |i->frame| && awi-|
|00001ad0| 3e 73 74 61 74 65 20 26 | 20 53 54 5f 49 43 4f 4e |>state &| ST_ICON|
|00001ae0| 29 20 7b 0a 58 09 20 20 | 73 74 6f 72 65 67 72 69 |) {.X. |storegri|
|00001af0| 64 5f 66 75 6e 63 20 3d | 20 53 74 6f 72 65 54 69 |d_func =| StoreTi|
|00001b00| 74 6c 65 47 72 69 64 42 | 6f 78 3b 0a 58 09 20 20 |tleGridB|ox;.X. |
|00001b10| 73 74 6f 72 65 62 6f 78 | 5f 66 75 6e 63 20 3d 20 |storebox|_func = |
|00001b20| 53 74 6f 72 65 54 69 74 | 6c 65 42 6f 78 3b 0a 58 |StoreTit|leBox;.X|
|00001b30| 20 20 20 20 20 7d 0a 58 | 20 20 20 20 20 65 6c 73 | }.X| els|
|00001b40| 65 20 7b 0a 58 09 20 20 | 73 74 6f 72 65 67 72 69 |e {.X. |storegri|
|00001b50| 64 5f 66 75 6e 63 20 3d | 20 53 74 6f 72 65 47 72 |d_func =| StoreGr|
|00001b60| 69 64 42 6f 78 3b 0a 58 | 09 20 20 73 74 6f 72 65 |idBox;.X|. store|
|00001b70| 62 6f 78 5f 66 75 6e 63 | 20 3d 20 53 74 6f 72 65 |box_func| = Store|
|00001b80| 42 6f 78 3b 0a 58 20 20 | 20 20 20 7d 0a 58 20 20 |Box;.X | }.X |
|00001b90| 20 20 20 0a 58 20 20 20 | 20 20 2f 2a 0a 58 20 20 | .X | /*.X |
|00001ba0| 20 20 20 20 2a 20 53 74 | 6f 72 65 20 74 68 65 20 | * St|ore the |
|00001bb0| 62 6f 78 2e 0a 58 20 20 | 20 20 20 20 2a 2f 0a 58 |box..X | */.X|
|00001bc0| 20 20 20 20 20 69 66 20 | 28 47 72 69 64 29 0a 58 | if |(Grid).X|
|00001bd0| 09 20 20 6e 75 6d 5f 76 | 65 63 74 6f 72 73 20 3d |. num_v|ectors =|
|00001be0| 20 73 74 6f 72 65 67 72 | 69 64 5f 66 75 6e 63 28 | storegr|id_func(|
|00001bf0| 62 6f 78 2c 20 75 6c 78 | 2c 20 75 6c 79 2c 20 6c |box, ulx|, uly, l|
|00001c00| 72 78 2c 20 6c 72 79 29 | 3b 0a 58 20 20 20 20 20 |rx, lry)|;.X |
|00001c10| 65 6c 73 65 0a 58 09 20 | 20 6e 75 6d 5f 76 65 63 |else.X. | num_vec|
|00001c20| 74 6f 72 73 20 3d 20 73 | 74 6f 72 65 62 6f 78 5f |tors = s|torebox_|
|00001c30| 66 75 6e 63 28 62 6f 78 | 2c 20 75 6c 78 2c 20 75 |func(box|, ulx, u|
|00001c40| 6c 79 2c 20 6c 72 78 2c | 20 6c 72 79 29 3b 0a 58 |ly, lrx,| lry);.X|
|00001c50| 20 20 20 20 20 0a 58 20 | 20 20 20 20 2f 2a 0a 58 | .X | /*.X|
|00001c60| 20 20 20 20 20 20 2a 20 | 46 72 65 65 7a 65 20 74 | * |Freeze t|
|00001c70| 68 65 20 73 65 72 76 65 | 72 2c 20 69 66 20 72 65 |he serve|r, if re|
|00001c80| 71 75 65 73 74 65 64 20 | 62 79 20 74 68 65 20 75 |quested |by the u|
|00001c90| 73 65 72 2e 0a 58 20 20 | 20 20 20 20 2a 20 54 68 |ser..X | * Th|
|00001ca0| 69 73 20 72 65 73 75 6c | 74 73 20 69 6e 20 61 20 |is resul|ts in a |
|00001cb0| 73 6f 6c 69 64 20 62 6f | 78 20 69 6e 73 74 65 61 |solid bo|x instea|
|00001cc0| 64 20 6f 66 20 61 20 66 | 6c 69 63 6b 65 72 69 6e |d of a f|lickerin|
|00001cd0| 67 20 6f 6e 65 2e 0a 58 | 20 20 20 20 20 20 2a 2f |g one..X| */|
|00001ce0| 0a 58 20 20 20 20 20 69 | 66 20 28 46 72 65 65 7a |.X i|f (Freez|
|00001cf0| 65 29 0a 58 09 20 20 58 | 47 72 61 62 53 65 72 76 |e).X. X|GrabServ|
|00001d00| 65 72 28 64 70 79 29 3b | 0a 58 20 20 20 20 20 0a |er(dpy);|.X .|
|00001d10| 58 20 20 20 20 20 2f 2a | 0a 58 20 20 20 20 20 20 |X /*|.X |
|00001d20| 2a 20 50 72 6f 63 65 73 | 73 20 61 6e 79 20 6f 75 |* Proces|s any ou|
|00001d30| 74 73 74 61 6e 64 69 6e | 67 20 65 76 65 6e 74 73 |tstandin|g events|
|00001d40| 20 62 65 66 6f 72 65 20 | 64 72 61 77 69 6e 67 20 | before |drawing |
|00001d50| 74 68 65 20 62 6f 78 2e | 0a 58 20 20 20 20 20 20 |the box.|.X |
|00001d60| 2a 2f 0a 58 20 20 20 20 | 20 77 68 69 6c 65 20 28 |*/.X | while (|
|00001d70| 51 4c 65 6e 67 74 68 28 | 64 70 79 29 20 3e 20 30 |QLength(|dpy) > 0|
|00001d80| 29 20 7b 0a 58 09 20 20 | 58 50 65 65 6b 45 76 65 |) {.X. |XPeekEve|
|00001d90| 6e 74 28 64 70 79 2c 20 | 26 62 75 74 74 6f 6e 5f |nt(dpy, |&button_|
|00001da0| 65 76 65 6e 74 29 3b 0a | 58 09 20 20 69 66 20 28 |event);.|X. if (|
|00001db0| 28 28 58 41 6e 79 45 76 | 65 6e 74 20 2a 29 26 62 |((XAnyEv|ent *)&b|
|00001dc0| 75 74 74 6f 6e 5f 65 76 | 65 6e 74 29 2d 3e 77 69 |utton_ev|ent)->wi|
|00001dd0| 6e 64 6f 77 20 3d 3d 20 | 52 6f 6f 74 57 69 6e 64 |ndow == |RootWind|
|00001de0| 6f 77 28 64 70 79 2c 20 | 73 63 72 29 29 0a 58 09 |ow(dpy, |scr)).X.|
|00001df0| 20 20 20 20 20 20 20 62 | 72 65 61 6b 3b 0a 58 09 | b|reak;.X.|
|00001e00| 20 20 47 65 74 42 75 74 | 74 6f 6e 28 26 62 75 74 | GetBut|ton(&but|
|00001e10| 74 6f 6e 5f 65 76 65 6e | 74 29 3b 0a 58 20 20 20 |ton_even|t);.X |
|00001e20| 20 20 7d 0a 58 20 20 20 | 20 20 0a 58 20 20 20 20 | }.X | .X |
|00001e30| 20 2f 2a 0a 58 20 20 20 | 20 20 20 2a 20 44 72 61 | /*.X | * Dra|
|00001e40| 77 20 74 68 65 20 62 6f | 78 2e 0a 58 20 20 20 20 |w the bo|x..X |
|00001e50| 20 20 2a 2f 0a 58 20 20 | 20 20 20 44 72 61 77 42 | */.X | DrawB|
|00001e60| 6f 78 28 29 3b 0a 58 20 | 20 20 20 20 69 66 20 28 |ox();.X | if (|
|00001e70| 46 72 65 65 7a 65 29 0a | 58 09 20 20 46 72 6f 7a |Freeze).|X. Froz|
|00001e80| 65 6e 20 3d 20 77 69 6e | 64 6f 77 3b 0a 58 20 20 |en = win|dow;.X |
|00001e90| 20 20 20 0a 58 20 20 20 | 20 20 2f 2a 0a 58 20 20 | .X | /*.X |
|00001ea0| 20 20 20 20 2a 20 57 65 | 20 73 70 69 6e 20 6f 75 | * We| spin ou|
|00001eb0| 72 20 77 68 65 65 6c 73 | 20 68 65 72 65 20 6c 6f |r wheels| here lo|
|00001ec0| 6f 6b 69 6e 67 20 66 6f | 72 20 6d 6f 75 73 65 20 |oking fo|r mouse |
|00001ed0| 6d 6f 76 65 6d 65 6e 74 | 20 6f 72 20 61 20 63 68 |movement| or a ch|
|00001ee0| 61 6e 67 65 0a 58 20 20 | 20 20 20 20 2a 20 69 6e |ange.X | * in|
|00001ef0| 20 74 68 65 20 73 74 61 | 74 75 73 20 6f 66 20 74 | the sta|tus of t|
|00001f00| 68 65 20 62 75 74 74 6f | 6e 73 2e 0a 58 20 20 20 |he butto|ns..X |
|00001f10| 20 20 20 2a 2f 0a 58 20 | 20 20 20 20 53 6e 61 74 | */.X | Snat|
|00001f20| 63 68 65 64 20 3d 20 54 | 52 55 45 3b 0a 58 20 20 |ched = T|RUE;.X |
|00001f30| 20 20 20 77 68 69 6c 65 | 20 28 54 52 55 45 29 20 | while| (TRUE) |
|00001f40| 7b 0a 58 09 20 20 0a 58 | 09 20 20 2f 2a 0a 58 09 |{.X. .X|. /*.X.|
|00001f50| 20 20 20 2a 20 43 68 65 | 63 6b 20 74 6f 20 73 65 | * Che|ck to se|
|00001f60| 65 20 69 66 20 77 65 20 | 68 61 76 65 20 61 20 63 |e if we |have a c|
|00001f70| 68 61 6e 67 65 20 69 6e | 20 6d 6f 75 73 65 20 62 |hange in| mouse b|
|00001f80| 75 74 74 6f 6e 20 73 74 | 61 74 75 73 2e 0a 58 09 |utton st|atus..X.|
|00001f90| 20 20 20 2a 20 54 68 69 | 73 20 69 73 20 68 6f 77 | * Thi|s is how|
|00001fa0| 20 77 65 20 67 65 74 20 | 6f 75 74 20 6f 66 20 74 | we get |out of t|
|00001fb0| 68 69 73 20 22 77 68 69 | 6c 65 22 20 6c 6f 6f 70 |his "whi|le" loop|
|00001fc0| 2e 0a 58 09 20 20 20 2a | 2f 0a 58 09 20 20 69 66 |..X. *|/.X. if|
|00001fd0| 20 28 58 50 65 6e 64 69 | 6e 67 28 64 70 79 29 20 | (XPendi|ng(dpy) |
|00001fe0| 26 26 20 21 50 72 6f 63 | 65 73 73 52 65 71 75 65 |&& !Proc|essReque|
|00001ff0| 73 74 73 28 62 6f 78 2c | 20 6e 75 6d 5f 76 65 63 |sts(box,| num_vec|
|00002000| 74 6f 72 73 29 20 26 26 | 0a 58 09 20 20 20 20 20 |tors) &&|.X. |
|00002010| 20 47 65 74 42 75 74 74 | 6f 6e 28 26 62 75 74 74 | GetButt|on(&butt|
|00002020| 6f 6e 5f 65 76 65 6e 74 | 29 29 20 7b 0a 58 09 20 |on_event|)) {.X. |
|00002030| 20 20 20 20 20 20 2f 2a | 0a 58 09 09 2a 20 50 72 | /*|.X..* Pr|
|00002040| 6f 63 65 73 73 20 74 68 | 65 20 70 65 6e 64 69 6e |ocess th|e pendin|
|00002050| 67 20 65 76 65 6e 74 73 | 2c 20 74 68 69 73 20 73 |g events|, this s|
|00002060| 65 71 75 65 6e 63 65 20 | 69 73 20 74 68 65 20 6f |equence |is the o|
|00002070| 6e 6c 79 0a 58 09 09 2a | 20 77 61 79 20 6f 75 74 |nly.X..*| way out|
|00002080| 20 6f 66 20 74 68 65 20 | 6c 6f 6f 70 20 61 6e 64 | of the |loop and|
|00002090| 20 74 68 65 20 72 6f 75 | 74 69 6e 65 2e 0a 58 09 | the rou|tine..X.|
|000020a0| 09 2a 2f 0a 58 09 20 20 | 20 20 20 20 20 0a 58 09 |.*/.X. | .X.|
|000020b0| 20 20 20 20 20 20 20 69 | 66 20 28 28 62 75 74 74 | i|f ((butt|
|000020c0| 6f 6e 5f 65 76 65 6e 74 | 2e 74 79 70 65 20 21 3d |on_event|.type !=|
|000020d0| 20 42 75 74 74 6f 6e 50 | 72 65 73 73 29 20 26 26 | ButtonP|ress) &&|
|000020e0| 20 0a 58 09 09 20 20 20 | 28 62 75 74 74 6f 6e 5f | .X.. |(button_|
|000020f0| 65 76 65 6e 74 2e 74 79 | 70 65 20 21 3d 20 42 75 |event.ty|pe != Bu|
|00002100| 74 74 6f 6e 52 65 6c 65 | 61 73 65 29 29 20 7b 0a |ttonRele|ase)) {.|
|00002110| 58 09 09 20 20 20 20 63 | 6f 6e 74 69 6e 75 65 3b |X.. c|ontinue;|
|00002120| 20 2f 2a 20 73 70 75 72 | 69 6f 75 73 20 6d 65 6e | /* spur|ious men|
|00002130| 75 20 65 76 65 6e 74 2e | 2e 2e 20 2a 2f 0a 58 09 |u event.|.. */.X.|
|00002140| 20 20 20 20 20 20 20 7d | 0a 58 09 20 20 20 20 20 | }|.X. |
|00002150| 20 20 0a 58 09 20 20 20 | 20 20 20 20 2f 2a 0a 58 | .X. | /*.X|
|00002160| 09 09 2a 20 49 66 20 77 | 65 20 66 72 6f 7a 65 20 |..* If w|e froze |
|00002170| 74 68 65 20 73 65 72 76 | 65 72 2c 20 74 68 65 6e |the serv|er, then|
|00002180| 20 65 72 61 73 65 20 74 | 68 65 20 6c 61 73 74 20 | erase t|he last |
|00002190| 6c 69 6e 65 73 20 64 72 | 61 77 6e 2e 0a 58 09 09 |lines dr|awn..X..|
|000021a0| 2a 2f 0a 58 09 20 20 20 | 20 20 20 20 69 66 20 28 |*/.X. | if (|
|000021b0| 46 72 65 65 7a 65 29 20 | 7b 0a 58 09 09 20 20 20 |Freeze) |{.X.. |
|000021c0| 20 44 72 61 77 42 6f 78 | 28 29 3b 0a 58 09 09 20 | DrawBox|();.X.. |
|000021d0| 20 20 20 46 72 6f 7a 65 | 6e 20 3d 20 28 57 69 6e | Froze|n = (Win|
|000021e0| 64 6f 77 29 30 3b 0a 58 | 09 09 20 20 20 20 58 55 |dow)0;.X|.. XU|
|000021f0| 6e 67 72 61 62 53 65 72 | 76 65 72 28 64 70 79 29 |ngrabSer|ver(dpy)|
|00002200| 3b 0a 58 09 20 20 20 20 | 20 20 20 7d 0a 58 09 20 |;.X. | }.X. |
|00002210| 20 20 20 20 20 20 0a 58 | 09 20 20 20 20 20 20 20 | .X|. |
|00002220| 2f 2a 0a 58 09 09 2a 20 | 53 61 76 65 20 74 68 65 |/*.X..* |Save the|
|00002230| 20 6d 6f 75 73 65 20 63 | 75 72 73 6f 72 20 6c 6f | mouse c|ursor lo|
|00002240| 63 61 74 69 6f 6e 2e 0a | 58 09 09 2a 2f 0a 58 09 |cation..|X..*/.X.|
|00002250| 20 20 20 20 20 20 20 69 | 66 20 28 62 75 74 74 6f | i|f (butto|
|00002260| 6e 5f 65 76 65 6e 74 2e | 74 79 70 65 20 3d 3d 20 |n_event.|type == |
|00002270| 42 75 74 74 6f 6e 50 72 | 65 73 73 20 7c 7c 0a 58 |ButtonPr|ess ||.X|
|00002280| 09 09 20 20 20 62 75 74 | 74 6f 6e 5f 65 76 65 6e |.. but|ton_even|
|00002290| 74 2e 74 79 70 65 20 3d | 3d 20 42 75 74 74 6f 6e |t.type =|= Button|
|000022a0| 52 65 6c 65 61 73 65 29 | 20 7b 0a 58 09 09 20 20 |Release)| {.X.. |
|000022b0| 20 20 6d 73 65 5f 78 20 | 3d 20 28 28 58 42 75 74 | mse_x |= ((XBut|
|000022c0| 74 6f 6e 45 76 65 6e 74 | 20 2a 29 26 62 75 74 74 |tonEvent| *)&butt|
|000022d0| 6f 6e 5f 65 76 65 6e 74 | 29 2d 3e 78 3b 0a 58 09 |on_event|)->x;.X.|
|000022e0| 09 20 20 20 20 6d 73 65 | 5f 79 20 3d 20 28 28 58 |. mse|_y = ((X|
|000022f0| 42 75 74 74 6f 6e 45 76 | 65 6e 74 20 2a 29 26 62 |ButtonEv|ent *)&b|
|00002300| 75 74 74 6f 6e 5f 65 76 | 65 6e 74 29 2d 3e 79 3b |utton_ev|ent)->y;|
|00002310| 0a 58 09 09 20 20 20 20 | 62 72 65 61 6b 3b 0a 58 |.X.. |break;.X|
|00002320| 09 20 20 20 20 20 20 20 | 7d 0a 58 09 20 20 7d 0a |. |}.X. }.|
|00002330| 58 09 20 20 65 6c 73 65 | 20 7b 0a 58 09 20 20 20 |X. else| {.X. |
|00002340| 20 20 20 20 2f 2a 0a 58 | 09 09 2a 20 43 6f 6e 74 | /*.X|..* Cont|
|00002350| 69 6e 75 65 20 74 6f 20 | 74 72 61 63 6b 20 74 68 |inue to |track th|
|00002360| 65 20 6d 6f 75 73 65 20 | 75 6e 74 69 6c 20 77 65 |e mouse |until we|
|00002370| 20 67 65 74 20 61 20 63 | 68 61 6e 67 65 0a 58 09 | get a c|hange.X.|
|00002380| 09 2a 20 69 6e 20 62 75 | 74 74 6f 6e 20 73 74 61 |.* in bu|tton sta|
|00002390| 74 75 73 2e 0a 58 09 09 | 2a 2f 0a 58 09 20 20 20 |tus..X..|*/.X. |
|000023a0| 20 20 20 20 58 51 75 65 | 72 79 50 6f 69 6e 74 65 | XQue|ryPointe|
|000023b0| 72 28 64 70 79 2c 20 52 | 6f 6f 74 57 69 6e 64 6f |r(dpy, R|ootWindo|
|000023c0| 77 28 64 70 79 2c 20 73 | 63 72 29 2c 20 0a 58 09 |w(dpy, s|cr), .X.|
|000023d0| 09 09 20 20 20 20 20 26 | 72 6f 6f 74 2c 20 26 73 |.. &|root, &s|
|000023e0| 75 62 5f 77 69 6e 2c 20 | 26 72 6f 6f 74 5f 78 2c |ub_win, |&root_x,|
|000023f0| 20 26 72 6f 6f 74 5f 79 | 2c 20 26 63 75 72 5f 78 | &root_y|, &cur_x|
|00002400| 2c 0a 58 09 09 09 20 20 | 20 20 20 26 63 75 72 5f |,.X... | &cur_|
|00002410| 79 2c 20 26 70 74 72 6d | 61 73 6b 29 3b 0a 58 09 |y, &ptrm|ask);.X.|
|00002420| 20 20 20 20 20 20 20 0a | 58 09 20 20 20 20 20 20 | .|X. |
|00002430| 20 2f 2a 0a 58 09 09 2a | 20 49 66 20 74 68 65 20 | /*.X..*| If the |
|00002440| 6d 6f 75 73 65 20 68 61 | 73 20 6d 6f 76 65 64 2c |mouse ha|s moved,|
|00002450| 20 74 68 65 6e 20 6d 61 | 6b 65 20 73 75 72 65 20 | then ma|ke sure |
|00002460| 74 68 65 20 62 6f 78 20 | 66 6f 6c 6c 6f 77 73 20 |the box |follows |
|00002470| 69 74 2e 0a 58 09 09 2a | 2f 0a 58 09 20 20 20 20 |it..X..*|/.X. |
|00002480| 20 20 20 69 66 20 28 28 | 63 75 72 5f 78 20 21 3d | if ((|cur_x !=|
|00002490| 20 70 72 65 76 5f 78 29 | 20 7c 7c 20 28 63 75 72 | prev_x)| || (cur|
|000024a0| 5f 79 20 21 3d 20 70 72 | 65 76 5f 79 29 29 20 7b |_y != pr|ev_y)) {|
|000024b0| 0a 58 09 09 20 20 20 20 | 0a 58 09 09 20 20 20 20 |.X.. |.X.. |
|000024c0| 2f 2a 0a 58 09 09 20 20 | 20 20 20 2a 20 49 66 20 |/*.X.. | * If |
|000024d0| 77 65 27 76 65 20 66 72 | 6f 7a 65 6e 20 74 68 65 |we've fr|ozen the|
|000024e0| 20 73 65 72 76 65 72 2c | 20 74 68 65 6e 20 65 72 | server,| then er|
|000024f0| 61 73 65 20 74 68 65 20 | 6f 6c 64 20 62 6f 78 20 |ase the |old box |
|00002500| 66 69 72 73 74 21 0a 58 | 09 09 20 20 20 20 20 2a |first!.X|.. *|
|00002510| 2f 0a 58 09 09 20 20 20 | 20 69 66 20 28 46 72 65 |/.X.. | if (Fre|
|00002520| 65 7a 65 29 0a 58 09 09 | 09 20 44 72 61 77 42 6f |eze).X..|. DrawBo|
|00002530| 78 28 29 3b 0a 58 09 09 | 20 20 20 20 0a 58 09 09 |x();.X..| .X..|
|00002540| 20 20 20 20 2f 2a 0a 58 | 09 09 20 20 20 20 20 2a | /*.X|.. *|
|00002550| 20 53 65 74 20 74 68 65 | 20 6e 65 77 20 62 6f 78 | Set the| new box|
|00002560| 20 70 6f 73 69 74 69 6f | 6e 2e 0a 58 09 09 20 20 | positio|n..X.. |
|00002570| 20 20 20 2a 2f 0a 58 09 | 09 20 20 20 20 75 6c 78 | */.X.|. ulx|
|00002580| 20 2b 3d 20 63 75 72 5f | 78 20 2d 20 70 72 65 76 | += cur_|x - prev|
|00002590| 5f 78 3b 0a 58 09 09 20 | 20 20 20 75 6c 79 20 2b |_x;.X.. | uly +|
|000025a0| 3d 20 63 75 72 5f 79 20 | 2d 20 70 72 65 76 5f 79 |= cur_y |- prev_y|
|000025b0| 3b 0a 58 09 09 20 20 20 | 20 6c 72 78 20 2b 3d 20 |;.X.. | lrx += |
|000025c0| 63 75 72 5f 78 20 2d 20 | 70 72 65 76 5f 78 3b 0a |cur_x - |prev_x;.|
|000025d0| 58 09 09 20 20 20 20 6c | 72 79 20 2b 3d 20 63 75 |X.. l|ry += cu|
|000025e0| 72 5f 79 20 2d 20 70 72 | 65 76 5f 79 3b 0a 58 09 |r_y - pr|ev_y;.X.|
|000025f0| 09 20 20 20 20 0a 58 09 | 09 20 20 20 20 2f 2a 0a |. .X.|. /*.|
|00002600| 58 09 09 20 20 20 20 20 | 2a 20 43 61 6c 63 75 6c |X.. |* Calcul|
|00002610| 61 74 65 20 74 68 65 20 | 76 65 63 74 6f 72 73 20 |ate the |vectors |
|00002620| 66 6f 72 20 74 68 65 20 | 6e 65 77 20 62 6f 78 2e |for the |new box.|
|00002630| 0a 58 09 09 20 20 20 20 | 20 2a 2f 0a 58 09 09 20 |.X.. | */.X.. |
|00002640| 20 20 20 0a 58 09 09 20 | 20 20 20 69 66 20 28 47 | .X.. | if (G|
|00002650| 72 69 64 29 0a 58 09 09 | 09 20 6e 75 6d 5f 76 65 |rid).X..|. num_ve|
|00002660| 63 74 6f 72 73 20 3d 20 | 73 74 6f 72 65 67 72 69 |ctors = |storegri|
|00002670| 64 5f 66 75 6e 63 28 62 | 6f 78 2c 20 75 6c 78 2c |d_func(b|ox, ulx,|
|00002680| 20 75 6c 79 2c 20 6c 72 | 78 2c 0a 58 09 09 09 09 | uly, lr|x,.X....|
|00002690| 09 09 09 20 6c 72 79 29 | 3b 0a 58 09 09 20 20 20 |... lry)|;.X.. |
|000026a0| 20 65 6c 73 65 0a 58 09 | 09 09 20 6e 75 6d 5f 76 | else.X.|.. num_v|
|000026b0| 65 63 74 6f 72 73 20 3d | 20 73 74 6f 72 65 62 6f |ectors =| storebo|
|000026c0| 78 5f 66 75 6e 63 28 62 | 6f 78 2c 20 75 6c 78 2c |x_func(b|ox, ulx,|
|000026d0| 20 75 6c 79 2c 20 6c 72 | 78 2c 20 6c 72 79 29 3b | uly, lr|x, lry);|
|000026e0| 0a 58 09 09 20 20 20 20 | 0a 58 09 09 20 20 20 20 |.X.. |.X.. |
|000026f0| 2f 2a 0a 58 09 09 20 20 | 20 20 20 2a 20 44 72 61 |/*.X.. | * Dra|
|00002700| 77 20 74 68 65 20 6e 65 | 77 20 62 6f 78 2e 0a 58 |w the ne|w box..X|
|00002710| 09 09 20 20 20 20 20 2a | 2f 0a 58 09 09 20 20 20 |.. *|/.X.. |
|00002720| 20 69 66 20 28 46 72 65 | 65 7a 65 29 0a 58 09 09 | if (Fre|eze).X..|
|00002730| 09 20 44 72 61 77 42 6f | 78 28 29 3b 0a 58 09 20 |. DrawBo|x();.X. |
|00002740| 20 20 20 20 20 20 7d 0a | 58 09 20 20 20 20 20 20 | }.|X. |
|00002750| 20 0a 58 09 20 20 20 20 | 20 20 20 2f 2a 0a 58 09 | .X. | /*.X.|
|00002760| 09 2a 20 53 61 76 65 20 | 74 68 65 20 6f 6c 64 20 |.* Save |the old |
|00002770| 62 6f 78 20 70 6f 73 69 | 74 69 6f 6e 2e 0a 58 09 |box posi|tion..X.|
|00002780| 09 2a 2f 0a 58 09 20 20 | 20 20 20 20 20 70 72 65 |.*/.X. | pre|
|00002790| 76 5f 78 20 3d 20 63 75 | 72 5f 78 3b 0a 58 09 20 |v_x = cu|r_x;.X. |
|000027a0| 20 20 20 20 20 20 70 72 | 65 76 5f 79 20 3d 20 63 | pr|ev_y = c|
|000027b0| 75 72 5f 79 3b 0a 58 09 | 20 20 20 20 20 20 20 0a |ur_y;.X.| .|
|000027c0| 58 09 20 20 20 20 20 20 | 20 2f 2a 0a 58 09 09 2a |X. | /*.X..*|
|000027d0| 20 49 66 20 73 65 72 76 | 65 72 20 69 73 20 6e 6f | If serv|er is no|
|000027e0| 74 20 66 72 6f 7a 65 6e | 2c 20 74 68 65 6e 20 64 |t frozen|, then d|
|000027f0| 72 61 77 20 74 68 65 20 | 22 66 6c 69 63 6b 65 72 |raw the |"flicker|
|00002800| 22 20 62 6f 78 2e 0a 58 | 09 09 2a 2f 0a 58 09 20 |" box..X|..*/.X. |
|00002810| 20 20 20 20 20 20 69 66 | 20 28 21 46 72 65 65 7a | if| (!Freez|
|00002820| 65 29 20 7b 0a 58 09 09 | 20 20 20 20 44 72 61 77 |e) {.X..| Draw|
|00002830| 42 6f 78 28 29 3b 0a 58 | 09 09 20 20 20 20 44 72 |Box();.X|.. Dr|
|00002840| 61 77 42 6f 78 28 29 3b | 0a 58 09 20 20 20 20 20 |awBox();|.X. |
|00002850| 20 20 7d 0a 58 09 20 20 | 7d 0a 58 20 20 20 20 20 | }.X. |}.X |
|00002860| 7d 0a 58 20 20 20 20 20 | 53 6e 61 74 63 68 65 64 |}.X |Snatched|
|00002870| 20 3d 20 46 41 4c 53 45 | 3b 0a 58 20 20 20 20 20 | = FALSE|;.X |
|00002880| 2f 2a 0a 58 20 20 20 20 | 20 20 2a 20 49 66 20 74 |/*.X | * If t|
|00002890| 68 65 20 62 75 74 74 6f | 6e 20 69 73 20 6e 6f 74 |he butto|n is not|
|000028a0| 20 61 20 62 75 74 74 6f | 6e 20 72 65 6c 65 61 73 | a butto|n releas|
|000028b0| 65 20 6f 66 20 74 68 65 | 20 73 61 6d 65 20 62 75 |e of the| same bu|
|000028c0| 74 74 6f 6e 20 70 72 65 | 73 73 65 64 2c 0a 58 20 |tton pre|ssed,.X |
|000028d0| 20 20 20 20 20 2a 20 74 | 68 65 6e 20 61 62 6f 72 | * t|hen abor|
|000028e0| 74 20 74 68 65 20 6f 70 | 65 72 61 74 69 6f 6e 2e |t the op|eration.|
|000028f0| 0a 58 20 20 20 20 20 20 | 2a 2f 0a 58 20 20 20 20 |.X |*/.X |
|00002900| 20 69 66 20 28 28 62 75 | 74 74 6f 6e 5f 65 76 65 | if ((bu|tton_eve|
|00002910| 6e 74 2e 74 79 70 65 20 | 21 3d 20 42 75 74 74 6f |nt.type |!= Butto|
|00002920| 6e 52 65 6c 65 61 73 65 | 29 20 7c 7c 0a 58 09 20 |nRelease|) ||.X. |
|00002930| 28 28 28 58 42 75 74 74 | 6f 6e 52 65 6c 65 61 73 |(((XButt|onReleas|
|00002940| 65 64 45 76 65 6e 74 20 | 2a 29 26 62 75 74 74 6f |edEvent |*)&butto|
|00002950| 6e 5f 65 76 65 6e 74 29 | 2d 3e 62 75 74 74 6f 6e |n_event)|->button|
|00002960| 20 21 3d 20 62 75 74 74 | 6f 6e 29 29 20 7b 0a 58 | != butt|on)) {.X|
|00002970| 09 20 20 52 65 73 65 74 | 43 75 72 73 6f 72 28 62 |. Reset|Cursor(b|
|00002980| 75 74 74 6f 6e 29 3b 0a | 58 09 20 20 75 6e 67 72 |utton);.|X. ungr|
|00002990| 61 62 5f 70 6f 69 6e 74 | 65 72 28 29 3b 0a 58 09 |ab_point|er();.X.|
|000029a0| 20 20 4c 65 61 76 65 28 | 54 52 55 45 29 0a 58 20 | Leave(|TRUE).X |
|000029b0| 20 20 20 20 7d 0a 58 20 | 20 20 20 20 0a 58 20 20 | }.X | .X |
|000029c0| 20 20 20 2f 2a 0a 58 20 | 20 20 20 20 20 2a 20 49 | /*.X | * I|
|000029d0| 66 20 77 65 20 61 72 65 | 20 68 65 72 65 20 77 65 |f we are| here we|
|000029e0| 20 68 61 76 65 20 63 6f | 6d 6d 69 74 74 65 64 20 | have co|mmitted |
|000029f0| 74 6f 20 69 63 6f 6e 69 | 66 79 69 6e 67 2f 64 65 |to iconi|fying/de|
|00002a00| 69 63 6f 6e 69 66 79 69 | 6e 67 2e 0a 58 20 20 20 |iconifyi|ng..X |
|00002a10| 20 20 20 2a 2f 0a 58 20 | 20 20 20 20 0a 58 20 20 | */.X | .X |
|00002a20| 20 20 20 2f 2a 0a 58 20 | 20 20 20 20 20 2a 20 44 | /*.X | * D|
|00002a30| 65 74 65 72 6d 69 6e 65 | 20 74 68 65 20 63 6f 6f |etermine| the coo|
|00002a40| 72 64 69 6e 61 74 65 73 | 20 6f 66 20 74 68 65 20 |rdinates| of the |
|00002a50| 69 63 6f 6e 20 6f 72 20 | 77 69 6e 64 6f 77 3b 0a |icon or |window;.|
|00002a60| 58 20 20 20 20 20 20 2a | 20 6e 6f 72 6d 61 6c 69 |X *| normali|
|00002a70| 7a 65 20 74 68 65 20 77 | 69 6e 64 6f 77 20 6f 72 |ze the w|indow or|
|00002a80| 20 69 63 6f 6e 20 63 6f | 6f 72 64 69 6e 61 74 65 | icon co|ordinate|
|00002a90| 73 20 69 66 20 74 68 65 | 20 75 73 65 72 20 73 6f |s if the| user so|
|00002aa0| 20 64 65 73 69 72 65 73 | 2e 0a 58 20 20 20 20 20 | desires|..X |
|00002ab0| 20 2a 2f 0a 58 20 20 20 | 20 20 6e 65 77 5f 77 20 | */.X | new_w |
|00002ac0| 3d 20 74 6f 49 6e 66 6f | 2e 77 69 64 74 68 3b 0a |= toInfo|.width;.|
|00002ad0| 58 20 20 20 20 20 6e 65 | 77 5f 68 20 3d 20 74 6f |X ne|w_h = to|
|00002ae0| 49 6e 66 6f 2e 68 65 69 | 67 68 74 3b 0a 58 20 20 |Info.hei|ght;.X |
|00002af0| 20 20 20 62 64 77 20 3d | 20 74 6f 49 6e 66 6f 2e | bdw =| toInfo.|
|00002b00| 62 6f 72 64 65 72 5f 77 | 69 64 74 68 3b 0a 58 20 |border_w|idth;.X |
|00002b10| 20 20 20 20 6e 65 77 5f | 78 20 3d 20 6d 73 65 5f | new_|x = mse_|
|00002b20| 78 20 2d 20 28 6e 65 77 | 5f 77 20 3e 3e 20 31 29 |x - (new|_w >> 1)|
|00002b30| 20 2d 20 62 64 77 3b 0a | 58 20 20 20 20 20 6e 65 | - bdw;.|X ne|
|00002b40| 77 5f 79 20 3d 20 6d 73 | 65 5f 79 20 2d 20 28 6e |w_y = ms|e_y - (n|
|00002b50| 65 77 5f 68 20 3e 3e 20 | 31 29 20 2d 20 62 64 77 |ew_h >> |1) - bdw|
|00002b60| 3b 0a 58 20 20 20 20 20 | 69 66 20 28 28 4e 49 63 |;.X |if ((NIc|
|00002b70| 6f 6e 20 26 26 20 61 77 | 69 2d 3e 73 74 61 74 65 |on && aw|i->state|
|00002b80| 20 26 20 53 54 5f 57 49 | 4e 44 4f 57 29 20 7c 7c | & ST_WI|NDOW) |||
|00002b90| 20 28 4e 57 69 6e 64 6f | 77 20 26 26 20 61 77 69 | (NWindo|w && awi|
|00002ba0| 2d 3e 73 74 61 74 65 20 | 26 20 53 54 5f 49 43 4f |->state |& ST_ICO|
|00002bb0| 4e 29 29 20 7b 0a 58 09 | 20 20 69 66 20 28 6e 65 |N)) {.X.| if (ne|
|00002bc0| 77 5f 78 20 3c 20 30 29 | 20 6e 65 77 5f 78 20 3d |w_x < 0)| new_x =|
|00002bd0| 20 30 3b 0a 58 09 20 20 | 69 66 20 28 6e 65 77 5f | 0;.X. |if (new_|
|00002be0| 79 20 3c 20 30 29 20 6e | 65 77 5f 79 20 3d 20 30 |y < 0) n|ew_y = 0|
|00002bf0| 3b 0a 58 09 20 20 69 66 | 20 28 28 6e 65 77 5f 78 |;.X. if| ((new_x|
|00002c00| 20 2d 20 31 20 2b 20 6e | 65 77 5f 77 20 2b 20 28 | - 1 + n|ew_w + (|
|00002c10| 62 64 77 20 3c 3c 20 31 | 29 29 20 3e 20 53 63 72 |bdw << 1|)) > Scr|
|00002c20| 65 65 6e 57 69 64 74 68 | 29 20 7b 0a 58 09 20 20 |eenWidth|) {.X. |
|00002c30| 20 20 20 20 20 6e 65 77 | 5f 78 20 3d 20 53 63 72 | new|_x = Scr|
|00002c40| 65 65 6e 57 69 64 74 68 | 20 2d 20 6e 65 77 5f 77 |eenWidth| - new_w|
|00002c50| 20 2d 20 28 62 64 77 20 | 3c 3c 20 31 29 20 2b 20 | - (bdw |<< 1) + |
|00002c60| 31 3b 0a 58 09 20 20 7d | 0a 58 09 20 20 69 66 20 |1;.X. }|.X. if |
|00002c70| 28 28 6e 65 77 5f 79 20 | 2d 20 31 20 2b 20 6e 65 |((new_y |- 1 + ne|
|00002c80| 77 5f 68 20 2b 20 28 62 | 64 77 20 3c 3c 20 31 29 |w_h + (b|dw << 1)|
|00002c90| 29 20 3e 20 53 63 72 65 | 65 6e 48 65 69 67 68 74 |) > Scre|enHeight|
|00002ca0| 29 20 7b 0a 58 09 20 20 | 20 20 20 20 20 6e 65 77 |) {.X. | new|
|00002cb0| 5f 79 20 3d 20 53 63 72 | 65 65 6e 48 65 69 67 68 |_y = Scr|eenHeigh|
|00002cc0| 74 20 2d 20 6e 65 77 5f | 68 20 2d 20 28 62 64 77 |t - new_|h - (bdw|
|00002cd0| 20 3c 3c 20 31 29 20 2b | 20 31 3b 0a 58 09 20 20 | << 1) +| 1;.X. |
|00002ce0| 7d 0a 58 20 20 20 20 20 | 7d 0a 58 20 20 20 20 20 |}.X |}.X |
|00002cf0| 69 66 20 28 61 77 69 2d | 3e 73 74 61 74 65 20 26 |if (awi-|>state &|
|00002d00| 20 53 54 5f 49 43 4f 4e | 29 20 7b 0a 58 09 20 20 | ST_ICON|) {.X. |
|00002d10| 61 77 69 2d 3e 73 74 61 | 74 65 20 5e 3d 20 53 54 |awi->sta|te ^= ST|
|00002d20| 5f 49 43 4f 4e 3b 0a 58 | 09 20 20 61 77 69 2d 3e |_ICON;.X|. awi->|
|00002d30| 73 74 61 74 65 20 7c 3d | 20 28 53 54 5f 57 49 4e |state |=| (ST_WIN|
|00002d40| 44 4f 57 20 7c 20 53 54 | 5f 50 4c 41 43 45 44 29 |DOW | ST|_PLACED)|
|00002d50| 3b 0a 58 09 20 20 69 66 | 20 28 21 61 77 69 2d 3e |;.X. if| (!awi->|
|00002d60| 66 72 61 6d 65 29 0a 58 | 09 20 20 20 20 20 20 20 |frame).X|. |
|00002d70| 58 52 65 6d 6f 76 65 46 | 72 6f 6d 53 61 76 65 53 |XRemoveF|romSaveS|
|00002d80| 65 74 28 64 70 79 2c 20 | 61 77 69 2d 3e 63 6c 69 |et(dpy, |awi->cli|
|00002d90| 65 6e 74 29 3b 0a 58 20 | 20 20 20 20 7d 0a 58 20 |ent);.X | }.X |
|00002da0| 20 20 20 20 65 6c 73 65 | 20 69 66 20 28 61 77 69 | else| if (awi|
|00002db0| 2d 3e 73 74 61 74 65 20 | 26 20 53 54 5f 57 49 4e |->state |& ST_WIN|
|00002dc0| 44 4f 57 29 20 7b 0a 58 | 09 20 20 61 77 69 2d 3e |DOW) {.X|. awi->|
|00002dd0| 73 74 61 74 65 20 5e 3d | 20 53 54 5f 57 49 4e 44 |state ^=| ST_WIND|
|00002de0| 4f 57 3b 0a 58 09 20 20 | 61 77 69 2d 3e 73 74 61 |OW;.X. |awi->sta|
|00002df0| 74 65 20 7c 3d 20 53 54 | 5f 49 43 4f 4e 3b 0a 58 |te |= ST|_ICON;.X|
|00002e00| 09 20 20 58 41 64 64 54 | 6f 53 61 76 65 53 65 74 |. XAddT|oSaveSet|
|00002e10| 28 64 70 79 2c 20 61 77 | 69 2d 3e 63 6c 69 65 6e |(dpy, aw|i->clien|
|00002e20| 74 29 3b 0a 58 20 20 20 | 20 20 7d 0a 58 20 20 20 |t);.X | }.X |
|00002e30| 20 20 65 6c 73 65 0a 58 | 09 20 20 66 70 72 69 6e | else.X|. fprin|
|00002e40| 74 66 28 73 74 64 65 72 | 72 2c 20 22 4e 65 77 49 |tf(stder|r, "NewI|
|00002e50| 63 6f 6e 69 66 79 3a 20 | 57 69 6e 64 6f 77 20 73 |conify: |Window s|
|00002e60| 74 61 74 65 20 67 6f 74 | 20 74 72 61 73 68 65 64 |tate got| trashed|
|00002e70| 21 5c 6e 22 29 3b 0a 58 | 20 20 20 20 20 0a 58 20 |!\n");.X| .X |
|00002e80| 20 20 20 20 2f 2a 0a 58 | 20 20 20 20 20 20 2a 20 | /*.X| * |
|00002e90| 4d 6f 76 65 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |Move the| window |
|00002ea0| 69 6e 74 6f 20 70 6c 61 | 63 65 2e 0a 58 20 20 20 |into pla|ce..X |
|00002eb0| 20 20 20 2a 2f 0a 58 20 | 20 20 20 20 58 4d 6f 76 | */.X | XMov|
|00002ec0| 65 57 69 6e 64 6f 77 28 | 64 70 79 2c 20 74 6f 2c |eWindow(|dpy, to,|
|00002ed0| 20 6e 65 77 5f 78 2c 20 | 6e 65 77 5f 79 29 3b 0a | new_x, |new_y);.|
|00002ee0| 58 20 0a 58 20 20 20 20 | 20 2f 2a 0a 58 20 20 20 |X .X | /*.X |
|00002ef0| 20 20 20 2a 20 4d 61 70 | 20 74 68 65 20 69 63 6f | * Map| the ico|
|00002f00| 6e 20 77 69 6e 64 6f 77 | 2e 0a 58 20 20 20 20 20 |n window|..X |
|00002f10| 20 2a 2f 0a 58 20 20 20 | 20 20 58 4d 61 70 52 61 | */.X | XMapRa|
|00002f20| 69 73 65 64 28 64 70 79 | 2c 20 74 6f 29 3b 0a 58 |ised(dpy|, to);.X|
|00002f30| 20 20 20 20 20 69 66 20 | 28 5a 61 70 29 20 7b 0a | if |(Zap) {.|
|00002f40| 58 09 20 20 6e 75 6d 5f | 76 65 63 74 6f 72 73 20 |X. num_|vectors |
|00002f50| 3d 20 53 74 6f 72 65 5a | 61 70 28 7a 61 70 2c 0a |= StoreZ|ap(zap,.|
|00002f60| 58 09 09 09 09 20 66 72 | 6f 6d 49 6e 66 6f 2e 78 |X.... fr|omInfo.x|
|00002f70| 2c 0a 58 09 09 09 09 20 | 66 72 6f 6d 49 6e 66 6f |,.X.... |fromInfo|
|00002f80| 2e 79 2c 0a 58 09 09 09 | 09 20 66 72 6f 6d 49 6e |.y,.X...|. fromIn|
|00002f90| 66 6f 2e 78 20 2b 20 66 | 72 6f 6d 49 6e 66 6f 2e |fo.x + f|romInfo.|
|00002fa0| 77 69 64 74 68 0a 58 09 | 09 09 09 20 2b 20 28 66 |width.X.|... + (f|
|00002fb0| 72 6f 6d 49 6e 66 6f 2e | 62 6f 72 64 65 72 5f 77 |romInfo.|border_w|
|00002fc0| 69 64 74 68 20 3c 3c 20 | 31 29 2c 0a 58 09 09 09 |idth << |1),.X...|
|00002fd0| 09 20 66 72 6f 6d 49 6e | 66 6f 2e 79 20 2b 20 66 |. fromIn|fo.y + f|
|00002fe0| 72 6f 6d 49 6e 66 6f 2e | 68 65 69 67 68 74 0a 58 |romInfo.|height.X|
|00002ff0| 09 09 09 09 20 2b 20 28 | 66 72 6f 6d 49 6e 66 6f |.... + (|fromInfo|
|00003000| 2e 62 6f 72 64 65 72 5f | 77 69 64 74 68 20 3c 3c |.border_|width <<|
|00003010| 20 31 29 2c 0a 58 09 09 | 09 09 20 75 6c 78 2c 20 | 1),.X..|.. ulx, |
|00003020| 75 6c 79 2c 20 6c 72 78 | 2c 20 6c 72 79 29 3b 0a |uly, lrx|, lry);.|
|00003030| 58 09 20 20 44 72 61 77 | 5a 61 70 28 29 3b 0a 58 |X. Draw|Zap();.X|
|00003040| 09 20 20 44 72 61 77 5a | 61 70 28 29 3b 0a 58 20 |. DrawZ|ap();.X |
|00003050| 20 20 20 20 7d 0a 58 20 | 20 20 20 20 2f 2a 0a 58 | }.X | /*.X|
|00003060| 20 20 20 20 20 20 2a 20 | 55 6e 6d 61 70 20 74 68 | * |Unmap th|
|00003070| 65 20 65 76 65 6e 74 20 | 77 69 6e 64 6f 77 2e 0a |e event |window..|
|00003080| 58 20 20 20 20 20 20 2a | 2f 0a 58 20 20 20 20 20 |X *|/.X |
|00003090| 58 55 6e 6d 61 70 57 69 | 6e 64 6f 77 28 64 70 79 |XUnmapWi|ndow(dpy|
|000030a0| 2c 20 66 72 6f 6d 29 3b | 0a 58 20 20 20 20 20 58 |, from);|.X X|
|000030b0| 46 6c 75 73 68 28 64 70 | 79 29 3b 0a 58 20 20 20 |Flush(dp|y);.X |
|000030c0| 20 20 75 6e 67 72 61 62 | 5f 70 6f 69 6e 74 65 72 | ungrab|_pointer|
|000030d0| 28 29 3b 0a 58 20 20 20 | 20 20 4c 65 61 76 65 28 |();.X | Leave(|
|000030e0| 54 52 55 45 29 0a 58 7d | 0a 45 4e 44 5f 4f 46 5f |TRUE).X}|.END_OF_|
|000030f0| 46 49 4c 45 0a 69 66 20 | 74 65 73 74 20 31 31 30 |FILE.if |test 110|
|00003100| 30 34 20 2d 6e 65 20 60 | 77 63 20 2d 63 20 3c 27 |04 -ne `|wc -c <'|
|00003110| 4e 65 77 49 63 6f 6e 69 | 66 79 2e 63 27 60 3b 20 |NewIconi|fy.c'`; |
|00003120| 74 68 65 6e 0a 20 20 20 | 20 65 63 68 6f 20 73 68 |then. | echo sh|
|00003130| 61 72 3a 20 5c 22 27 4e | 65 77 49 63 6f 6e 69 66 |ar: \"'N|ewIconif|
|00003140| 79 2e 63 27 5c 22 20 75 | 6e 70 61 63 6b 65 64 20 |y.c'\" u|npacked |
|00003150| 77 69 74 68 20 77 72 6f | 6e 67 20 73 69 7a 65 21 |with wro|ng size!|
|00003160| 0a 66 69 0a 23 20 65 6e | 64 20 6f 66 20 27 4e 65 |.fi.# en|d of 'Ne|
|00003170| 77 49 63 6f 6e 69 66 79 | 2e 63 27 0a 66 69 0a 69 |wIconify|.c'.fi.i|
|00003180| 66 20 74 65 73 74 20 2d | 66 20 27 61 77 6d 2e 6d |f test -|f 'awm.m|
|00003190| 61 6e 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |an' -a "|${1}" !=|
|000031a0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|000031b0| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|000031c0| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|000031d0| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 61 77 6d |ting fil|e \"'awm|
|000031e0| 2e 6d 61 6e 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |.man'\".|else.ech|
|000031f0| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00003200| 6e 67 20 5c 22 27 61 77 | 6d 2e 6d 61 6e 27 5c 22 |ng \"'aw|m.man'\"|
|00003210| 20 5c 28 34 31 36 39 31 | 20 63 68 61 72 61 63 74 | \(41691| charact|
|00003220| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00003230| 2f 22 20 3e 27 61 77 6d | 2e 6d 61 6e 27 20 3c 3c |/" >'awm|.man' <<|
|00003240| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 2e |'END_OF_|FILE'.X.|
|00003250| 64 65 20 45 58 20 20 20 | 20 20 20 20 20 20 20 5c |de EX | \|
|00003260| 22 20 42 65 67 69 6e 20 | 65 78 61 6d 70 6c 65 0a |" Begin |example.|
|00003270| 58 2e 6e 65 20 35 0a 58 | 2e 69 66 20 6e 20 2e 73 |X.ne 5.X|.if n .s|
|00003280| 70 20 31 0a 58 2e 69 66 | 20 74 20 2e 73 70 20 2e |p 1.X.if| t .sp .|
|00003290| 35 0a 58 2e 6e 66 0a 58 | 2e 69 6e 20 2b 2e 35 69 |5.X.nf.X|.in +.5i|
|000032a0| 0a 58 2e 2e 0a 58 2e 64 | 65 20 45 45 09 09 5c 22 |.X...X.d|e EE..\"|
|000032b0| 20 45 6e 64 20 65 78 61 | 6d 70 6c 65 0a 58 2e 66 | End exa|mple.X.f|
|000032c0| 69 0a 58 2e 69 6e 20 2d | 2e 35 69 0a 58 2e 69 66 |i.X.in -|.5i.X.if|
|000032d0| 20 6e 20 2e 73 70 20 31 | 0a 58 2e 69 66 20 74 20 | n .sp 1|.X.if t |
|000032e0| 2e 73 70 20 2e 35 0a 58 | 2e 2e 0a 58 2e 54 48 20 |.sp .5.X|...X.TH |
|000032f0| 41 57 4d 20 31 20 22 32 | 33 20 4a 75 6c 79 20 31 |AWM 1 "2|3 July 1|
|00003300| 39 38 38 22 20 22 58 20 | 56 65 72 73 69 6f 6e 20 |988" "X |Version |
|00003310| 31 31 22 0a 58 2e 53 48 | 20 4e 41 4d 45 0a 58 2e |11".X.SH| NAME.X.|
|00003320| 50 50 0a 58 61 77 6d 20 | 2d 20 57 69 6e 64 6f 77 |PP.Xawm |- Window|
|00003330| 20 4d 61 6e 61 67 65 72 | 20 58 20 43 6c 69 65 6e | Manager| X Clien|
|00003340| 74 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 0a 58 2e |t Applic|ation.X.|
|00003350| 50 50 0a 58 2e 53 48 20 | 53 59 4e 4f 50 53 49 53 |PP.X.SH |SYNOPSIS|
|00003360| 0a 58 2e 50 50 0a 58 2e | 42 20 61 77 6d 0a 58 5b |.X.PP.X.|B awm.X[|
|00003370| 0a 58 2e 42 20 5c 2d 66 | 0a 58 66 69 6c 65 6e 61 |.X.B \-f|.Xfilena|
|00003380| 6d 65 0a 58 5d 20 5b 0a | 58 2e 42 20 5c 2d 65 0a |me.X] [.|X.B \-e.|
|00003390| 58 65 78 65 63 66 69 6c | 65 0a 58 5d 20 5b 0a 58 |Xexecfil|e.X] [.X|
|000033a0| 2e 42 20 5c 2d 62 0a 58 | 5d 20 5b 0a 58 2e 42 20 |.B \-b.X|] [.X.B |
|000033b0| 5c 2d 69 0a 58 5d 0a 58 | 2e 50 50 0a 58 2e 53 48 |\-i.X].X|.PP.X.SH|
|000033c0| 20 44 45 53 43 52 49 50 | 54 49 4f 4e 0a 58 2e 50 | DESCRIP|TION.X.P|
|000033d0| 50 0a 58 54 68 65 20 5c | 66 49 61 77 6d 5c 66 50 |P.XThe \|fIawm\fP|
|000033e0| 20 63 6f 6d 6d 61 6e 64 | 20 69 73 20 61 20 77 69 | command| is a wi|
|000033f0| 6e 64 6f 77 20 6d 61 6e | 61 67 65 72 20 63 6c 69 |ndow man|ager cli|
|00003400| 65 6e 74 20 0a 58 61 70 | 70 6c 69 63 61 74 69 6f |ent .Xap|plicatio|
|00003410| 6e 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |n of the| window |
|00003420| 0a 58 73 65 72 76 65 72 | 2e 20 49 74 20 69 73 20 |.Xserver|. It is |
|00003430| 68 65 61 76 69 6c 79 20 | 62 61 73 65 64 20 6f 6e |heavily |based on|
|00003440| 20 61 6e 20 65 61 72 6c | 69 65 72 20 77 6f 72 6b | an earl|ier work|
|00003450| 20 62 79 20 4d 2e 20 47 | 61 6e 63 61 72 7a 0a 58 | by M. G|ancarz.X|
|00003460| 6f 66 20 44 69 67 69 74 | 61 6c 20 45 71 75 69 70 |of Digit|al Equip|
|00003470| 6d 65 6e 74 20 43 6f 72 | 70 6f 72 61 74 69 6f 6e |ment Cor|poration|
|00003480| 20 28 73 65 65 20 74 68 | 65 20 65 6e 64 20 6f 66 | (see th|e end of|
|00003490| 20 74 68 69 73 20 64 6f | 63 75 6d 65 6e 74 20 66 | this do|cument f|
|000034a0| 6f 72 0a 58 61 70 70 72 | 6f 70 72 69 61 74 65 20 |or.Xappr|opriate |
|000034b0| 61 63 6b 6e 6f 77 6c 65 | 64 67 6d 65 6e 74 73 29 |acknowle|dgments)|
|000034c0| 2e 0a 58 2e 50 50 0a 58 | 57 68 65 6e 20 5c 66 49 |..X.PP.X|When \fI|
|000034d0| 61 77 6d 5c 66 50 20 69 | 73 20 69 6e 76 6f 6b 65 |awm\fP i|s invoke|
|000034e0| 64 2c 20 69 74 20 74 72 | 61 63 65 73 20 61 20 70 |d, it tr|aces a p|
|000034f0| 72 65 64 65 66 69 6e 65 | 64 20 73 65 61 72 63 68 |redefine|d search|
|00003500| 20 70 61 74 68 0a 58 74 | 6f 20 6c 6f 63 61 74 65 | path.Xt|o locate|
|00003510| 20 61 6e 79 20 5c 66 49 | 61 77 6d 5c 66 50 20 73 | any \fI|awm\fP s|
|00003520| 74 61 72 74 75 70 20 66 | 69 6c 65 73 2e 20 20 49 |tartup f|iles. I|
|00003530| 66 20 6e 6f 20 73 74 61 | 72 74 75 70 20 66 69 6c |f no sta|rtup fil|
|00003540| 65 73 0a 58 65 78 69 73 | 74 2c 20 5c 66 49 61 77 |es.Xexis|t, \fIaw|
|00003550| 6d 5c 66 50 20 69 6e 69 | 74 69 61 6c 69 7a 65 73 |m\fP ini|tializes|
|00003560| 20 69 74 73 65 6c 66 20 | 66 72 6f 6d 20 61 20 62 | itself |from a b|
|00003570| 75 69 6c 74 2d 69 6e 20 | 64 65 66 61 75 6c 74 20 |uilt-in |default |
|00003580| 66 69 6c 65 2e 0a 58 2e | 50 50 0a 58 49 66 20 73 |file..X.|PP.XIf s|
|00003590| 74 61 72 74 75 70 20 66 | 69 6c 65 73 20 65 78 69 |tartup f|iles exi|
|000035a0| 73 74 20 69 6e 20 61 6e | 79 20 6f 66 20 74 68 65 |st in an|y of the|
|000035b0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 6c 6f 63 61 74 | followi|ng locat|
|000035c0| 69 6f 6e 73 2c 0a 58 74 | 68 65 69 72 20 63 6f 6e |ions,.Xt|heir con|
|000035d0| 74 65 6e 74 73 20 61 72 | 65 20 6d 65 72 67 65 64 |tents ar|e merged|
|000035e0| 20 74 6f 67 65 74 68 65 | 72 20 74 6f 20 63 72 65 | togethe|r to cre|
|000035f0| 61 74 65 20 5c 66 49 61 | 77 6d 5c 66 50 27 73 20 |ate \fIa|wm\fP's |
|00003600| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 2e 0a 58 |configur|ation..X|
|00003610| 49 6e 20 74 68 65 20 63 | 61 73 65 20 6f 66 20 63 |In the c|ase of c|
|00003620| 6f 6e 74 65 6e 74 69 6f | 6e 2c 20 74 68 65 20 62 |ontentio|n, the b|
|00003630| 69 6e 64 69 6e 67 73 20 | 69 6e 20 74 68 65 20 6c |indings |in the l|
|00003640| 61 73 74 20 66 69 6c 65 | 20 66 6f 75 6e 64 0a 58 |ast file| found.X|
|00003650| 6f 76 65 72 72 69 64 65 | 20 70 72 65 76 69 6f 75 |override| previou|
|00003660| 73 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 73 |s specif|ications|
|00003670| 2e 20 20 46 69 6c 65 73 | 20 69 6e 20 74 68 65 20 |. Files| in the |
|00003680| 5c 66 49 61 77 6d 5c 66 | 50 0a 58 73 65 61 72 63 |\fIawm\f|P.Xsearc|
|00003690| 68 20 70 61 74 68 20 61 | 72 65 3a 0a 58 2e 45 58 |h path a|re:.X.EX|
|000036a0| 0a 58 24 4c 49 42 44 49 | 52 5c 66 49 2f 61 77 6d |.X$LIBDI|R\fI/awm|
|000036b0| 2f 73 79 73 74 65 6d 2e | 61 77 6d 72 63 5c 66 50 |/system.|awmrc\fP|
|000036c0| 20 28 77 68 65 72 65 20 | 24 4c 49 42 44 49 52 20 | (where |$LIBDIR |
|000036d0| 69 73 20 64 65 66 69 6e | 65 64 20 69 6e 20 61 77 |is defin|ed in aw|
|000036e0| 6d 27 73 20 4d 61 6b 65 | 66 69 6c 65 29 0a 58 24 |m's Make|file).X$|
|000036f0| 48 4f 4d 45 5c 66 49 2f | 2e 61 77 6d 72 63 5c 66 |HOME\fI/|.awmrc\f|
|00003700| 50 0a 58 2e 45 45 0a 58 | 2e 50 50 0a 58 54 6f 20 |P.X.EE.X|.PP.XTo |
|00003710| 75 73 65 20 6f 6e 6c 79 | 20 74 68 65 20 73 65 74 |use only| the set|
|00003720| 74 69 6e 67 73 20 64 65 | 66 69 6e 65 64 20 69 6e |tings de|fined in|
|00003730| 20 61 20 73 69 6e 67 6c | 65 20 73 74 61 72 74 75 | a singl|e startu|
|00003740| 70 20 66 69 6c 65 2c 0a | 58 69 6e 63 6c 75 64 65 |p file,.|Xinclude|
|00003750| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 73 2c 20 | the var|iables, |
|00003760| 5c 66 42 72 65 73 65 74 | 62 69 6e 64 69 6e 67 73 |\fBreset|bindings|
|00003770| 5c 66 50 2c 20 5c 66 42 | 72 65 73 65 74 6d 65 6e |\fP, \fB|resetmen|
|00003780| 75 73 5c 66 50 20 61 6e | 64 0a 58 5c 66 42 72 65 |us\fP an|d.X\fBre|
|00003790| 73 65 74 67 61 64 67 65 | 74 73 5c 66 50 20 61 74 |setgadge|ts\fP at|
|000037a0| 20 74 68 65 20 74 6f 70 | 20 6f 66 20 74 68 61 74 | the top| of that|
|000037b0| 20 73 70 65 63 69 66 69 | 63 20 73 74 61 72 74 75 | specifi|c startu|
|000037c0| 70 20 66 69 6c 65 2e 0a | 58 2e 50 50 0a 58 2e 53 |p file..|X.PP.X.S|
|000037d0| 48 20 4f 50 54 49 4f 4e | 53 0a 58 2e 49 50 20 22 |H OPTION|S.X.IP "|
|000037e0| 5c 66 42 5c 2d 66 5c 66 | 50 20 66 69 6c 65 6e 61 |\fB\-f\f|P filena|
|000037f0| 6d 65 22 0a 58 4e 61 6d | 65 73 20 61 6e 20 61 6c |me".XNam|es an al|
|00003800| 74 65 72 6e 61 74 65 20 | 66 69 6c 65 20 61 73 20 |ternate |file as |
|00003810| 61 6e 20 5c 66 49 61 77 | 6d 5c 66 50 20 73 74 61 |an \fIaw|m\fP sta|
|00003820| 72 74 75 70 20 66 69 6c | 65 2e 0a 58 2e 49 50 20 |rtup fil|e..X.IP |
|00003830| 22 5c 66 42 5c 2d 65 5c | 66 50 20 65 78 65 63 66 |"\fB\-e\|fP execf|
|00003840| 69 6c 65 22 0a 58 4e 61 | 6d 65 73 20 61 20 66 69 |ile".XNa|mes a fi|
|00003850| 6c 65 20 74 6f 20 65 78 | 65 63 20 28 74 79 70 69 |le to ex|ec (typi|
|00003860| 63 61 6c 6c 79 20 61 20 | 73 68 65 6c 6c 20 73 63 |cally a |shell sc|
|00003870| 72 69 70 74 20 69 6e 76 | 6f 6b 69 6e 67 20 6f 74 |ript inv|oking ot|
|00003880| 68 65 72 20 63 6c 69 65 | 6e 74 73 29 20 61 66 74 |her clie|nts) aft|
|00003890| 65 72 0a 58 61 6c 6c 20 | 73 74 61 72 74 75 70 20 |er.Xall |startup |
|000038a0| 66 69 6c 65 73 20 68 61 | 76 65 20 62 65 65 6e 20 |files ha|ve been |
|000038b0| 6c 6f 61 64 65 64 2e 20 | 54 68 69 73 20 69 73 20 |loaded. |This is |
|000038c0| 75 73 65 66 75 6c 20 66 | 6f 72 20 6d 69 6e 69 6d |useful f|or minim|
|000038d0| 69 7a 69 6e 67 20 74 68 | 65 20 6e 75 6d 62 65 72 |izing th|e number|
|000038e0| 20 6f 66 0a 58 6d 61 70 | 2f 75 6e 6d 61 70 73 20 | of.Xmap|/unmaps |
|000038f0| 74 68 61 74 20 6f 63 63 | 75 72 20 77 68 65 6e 20 |that occ|ur when |
|00003900| 74 69 74 6c 65 62 61 72 | 73 20 61 72 65 20 61 64 |titlebar|s are ad|
|00003910| 64 65 64 2e 0a 58 2e 49 | 50 20 22 5c 66 42 5c 2d |ded..X.I|P "\fB\-|
|00003920| 62 5c 66 50 22 0a 58 43 | 61 75 73 65 73 20 5c 66 |b\fP".XC|auses \f|
|00003930| 49 61 77 6d 5c 66 50 20 | 74 6f 20 69 67 6e 6f 72 |Iawm\fP |to ignor|
|00003940| 65 20 74 68 65 20 73 79 | 73 74 65 6d 20 73 74 61 |e the sy|stem sta|
|00003950| 72 74 75 70 20 66 69 6c | 65 2e 0a 58 2e 49 50 20 |rtup fil|e..X.IP |
|00003960| 22 5c 66 42 5c 2d 69 5c | 66 50 22 0a 58 43 61 75 |"\fB\-i\|fP".XCau|
|00003970| 73 65 73 20 5c 66 49 61 | 77 6d 5c 66 50 20 74 6f |ses \fIa|wm\fP to|
|00003980| 20 69 67 6e 6f 72 65 20 | 24 48 4f 4d 45 2f 5c 66 | ignore |$HOME/\f|
|00003990| 49 2e 61 77 6d 72 63 5c | 66 50 2e 0a 58 2e 50 50 |I.awmrc\|fP..X.PP|
|000039a0| 0a 58 2e 53 48 20 53 54 | 41 52 54 55 50 20 46 49 |.X.SH ST|ARTUP FI|
|000039b0| 4c 45 20 56 41 52 49 41 | 42 4c 45 53 0a 58 2e 50 |LE VARIA|BLES.X.P|
|000039c0| 50 0a 58 56 61 72 69 61 | 62 6c 65 73 20 61 72 65 |P.XVaria|bles are|
|000039d0| 20 74 79 70 69 63 61 6c | 6c 79 20 65 6e 74 65 72 | typical|ly enter|
|000039e0| 65 64 20 66 69 72 73 74 | 2c 20 61 74 20 74 68 65 |ed first|, at the|
|000039f0| 20 74 6f 70 20 6f 66 20 | 74 68 65 20 73 74 61 72 | top of |the star|
|00003a00| 74 75 70 0a 58 66 69 6c | 65 2e 20 42 65 63 61 75 |tup.Xfil|e. Becau|
|00003a10| 73 65 20 6f 66 20 61 20 | 6d 65 72 67 65 20 77 69 |se of a |merge wi|
|00003a20| 74 68 20 74 68 65 20 72 | 65 73 6f 75 72 63 65 20 |th the r|esource |
|00003a30| 6d 61 6e 61 67 65 72 2c | 20 76 65 72 79 20 66 65 |manager,| very fe|
|00003a40| 77 20 76 61 72 69 61 62 | 6c 65 73 0a 58 61 72 65 |w variab|les.Xare|
|00003a50| 20 73 65 74 20 68 65 72 | 65 20 6e 6f 77 2e 20 54 | set her|e now. T|
|00003a60| 68 65 20 64 69 72 65 63 | 74 69 76 65 73 20 5c 66 |he direc|tives \f|
|00003a70| 42 72 65 73 65 74 62 69 | 6e 64 69 6e 67 73 5c 66 |Bresetbi|ndings\f|
|00003a80| 50 2c 20 5c 66 42 72 65 | 73 65 74 6d 65 6e 75 73 |P, \fBre|setmenus|
|00003a90| 5c 66 50 0a 58 61 6e 64 | 20 5c 66 42 72 65 73 65 |\fP.Xand| \fBrese|
|00003aa0| 74 67 61 64 67 65 74 73 | 5c 66 50 20 61 72 65 20 |tgadgets|\fP are |
|00003ab0| 73 74 69 6c 6c 20 61 6c | 6c 6f 77 65 64 2c 20 61 |still al|lowed, a|
|00003ac0| 73 20 61 72 65 20 67 61 | 64 67 65 74 20 64 65 63 |s are ga|dget dec|
|00003ad0| 6c 61 72 61 74 69 6f 6e | 73 20 6f 66 0a 58 74 68 |laration|s of.Xth|
|00003ae0| 65 20 66 6f 72 6d 3a 0a | 58 2e 45 58 0a 58 5c 66 |e form:.|X.EX.X\f|
|00003af0| 42 67 61 64 67 65 74 5b | 5c 66 50 5c 66 49 6e 5c |Bgadget[|\fP\fIn\|
|00003b00| 66 42 5d 5c 66 50 3d 5c | 66 49 65 78 70 72 5c 66 |fB]\fP=\|fIexpr\f|
|00003b10| 50 0a 58 2e 45 45 0a 58 | 2e 50 50 0a 58 57 68 65 |P.X.EE.X|.PP.XWhe|
|00003b20| 72 65 20 5c 66 49 6e 5c | 66 50 20 69 73 20 61 20 |re \fIn\|fP is a |
|00003b30| 70 6f 73 69 74 69 76 65 | 20 69 6e 74 65 67 65 72 |positive| integer|
|00003b40| 20 69 6e 64 69 63 61 74 | 69 6e 67 20 74 68 65 20 | indicat|ing the |
|00003b50| 67 61 64 67 65 74 20 74 | 6f 20 69 6e 69 74 69 61 |gadget t|o initia|
|00003b60| 6c 69 7a 65 20 61 6e 64 | 0a 58 5c 66 49 65 78 70 |lize and|.X\fIexp|
|00003b70| 72 5c 66 50 20 69 73 20 | 6f 6e 65 20 6f 66 20 74 |r\fP is |one of t|
|00003b80| 68 65 20 66 6f 6c 6c 6f | 77 69 6e 67 3a 0a 58 2e |he follo|wing:.X.|
|00003b90| 49 50 20 22 5c 66 49 73 | 74 72 69 6e 67 5c 66 50 |IP "\fIs|tring\fP|
|00003ba0| 20 6f 72 20 22 22 5c 66 | 49 73 74 72 69 6e 67 5c | or ""\f|Istring\|
|00003bb0| 66 50 22 22 20 5b 20 5e | 20 5c 66 49 61 74 74 72 |fP"" [ ^| \fIattr|
|00003bc0| 69 62 75 74 65 73 5c 66 | 50 20 5d 22 0a 58 53 65 |ibutes\f|P ]".XSe|
|00003bd0| 74 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |t the na|me of th|
|00003be0| 65 20 67 61 64 67 65 74 | 20 74 6f 20 5c 66 49 73 |e gadget| to \fIs|
|00003bf0| 74 72 69 6e 67 5c 66 50 | 2e 20 54 68 65 20 6e 61 |tring\fP|. The na|
|00003c00| 6d 65 20 77 69 6c 6c 20 | 62 65 0a 58 70 61 69 6e |me will |be.Xpain|
|00003c10| 74 65 64 20 69 6e 20 74 | 68 65 20 67 61 64 67 65 |ted in t|he gadge|
|00003c20| 74 20 62 6f 78 20 77 69 | 74 68 20 74 68 65 20 5c |t box wi|th the \|
|00003c30| 66 42 67 61 64 67 65 74 | 2e 66 6f 6e 74 5c 66 50 |fBgadget|.font\fP|
|00003c40| 20 72 65 73 6f 75 72 63 | 65 0a 58 6f 72 20 61 6e | resourc|e.Xor an|
|00003c50| 20 6f 76 65 72 72 69 64 | 69 6e 67 20 66 6f 6e 74 | overrid|ing font|
|00003c60| 20 61 74 74 72 69 62 75 | 74 65 20 28 73 65 65 20 | attribu|te (see |
|00003c70| 62 65 6c 6f 77 29 2e 0a | 58 5c 66 49 73 74 72 69 |below)..|X\fIstri|
|00003c80| 6e 67 5c 66 50 20 6d 61 | 79 20 63 6f 6e 74 61 69 |ng\fP ma|y contai|
|00003c90| 6e 20 65 6d 62 65 64 64 | 65 64 20 6e 6f 6e 2d 61 |n embedd|ed non-a|
|00003ca0| 6c 70 68 61 6e 75 6d 65 | 72 69 63 20 63 68 61 72 |lphanume|ric char|
|00003cb0| 61 63 74 65 72 73 0a 58 | 69 6e 20 74 68 65 20 66 |acters.X|in the f|
|00003cc0| 6f 72 6d 20 6f 66 20 5c | 5c 5c 66 49 23 5c 66 50 |orm of \|\\fI#\fP|
|00003cd0| 20 77 68 65 72 65 20 5c | 66 49 23 5c 66 50 20 69 | where \|fI#\fP i|
|00003ce0| 73 20 6f 6e 65 20 6f 72 | 20 6d 6f 72 65 20 64 65 |s one or| more de|
|00003cf0| 63 69 6d 61 6c 20 64 69 | 67 69 74 73 20 28 69 2e |cimal di|gits (i.|
|00003d00| 65 2e 20 5c 5c 35 34 29 | 0a 58 6f 72 20 5c 5c 5c |e. \\54)|.Xor \\\|
|00003d10| 66 49 63 5c 66 50 20 77 | 68 65 72 65 20 5c 66 49 |fIc\fP w|here \fI|
|00003d20| 63 5c 66 50 20 69 73 20 | 61 20 63 68 61 72 61 63 |c\fP is |a charac|
|00003d30| 74 65 72 20 69 6e 20 74 | 68 65 20 73 74 61 6e 64 |ter in t|he stand|
|00003d40| 61 72 64 20 43 20 73 74 | 72 69 6e 67 0a 58 6c 69 |ard C st|ring.Xli|
|00003d50| 74 65 72 61 6c 20 73 65 | 74 20 28 69 2e 65 2e 20 |teral se|t (i.e. |
|00003d60| 6e 2c 20 72 2c 20 74 2c | 20 66 29 2e 20 54 68 69 |n, r, t,| f). Thi|
|00003d70| 73 20 69 73 20 75 73 65 | 66 75 6c 20 69 66 20 79 |s is use|ful if y|
|00003d80| 6f 75 27 76 65 20 73 70 | 65 63 69 66 69 65 64 0a |ou've sp|ecified.|
|00003d90| 58 61 20 67 61 64 67 65 | 74 20 66 6f 6e 74 20 77 |Xa gadge|t font w|
|00003da0| 69 74 68 20 67 6c 79 70 | 68 73 20 69 6e 20 69 74 |ith glyp|hs in it|
|00003db0| 20 28 73 75 63 68 20 61 | 73 20 63 75 72 73 6f 72 | (such a|s cursor|
|00003dc0| 29 20 61 6e 64 20 79 6f | 75 20 77 61 6e 74 20 74 |) and yo|u want t|
|00003dd0| 6f 20 70 61 69 6e 74 0a | 58 61 20 73 70 65 63 69 |o paint.|Xa speci|
|00003de0| 66 69 63 20 67 6c 79 70 | 68 20 66 72 6f 6d 20 69 |fic glyp|h from i|
|00003df0| 74 20 69 6e 20 61 20 67 | 61 64 67 65 74 20 62 6f |t in a g|adget bo|
|00003e00| 78 2e 20 4d 61 6e 79 20 | 73 75 63 68 20 67 6c 79 |x. Many |such gly|
|00003e10| 70 68 73 20 61 72 65 20 | 6e 6f 74 0a 58 72 65 70 |phs are |not.Xrep|
|00003e20| 72 65 73 65 6e 74 65 64 | 20 62 79 20 61 73 63 69 |resented| by asci|
|00003e30| 69 20 63 68 61 72 61 63 | 74 65 72 73 2e 0a 58 2e |i charac|ters..X.|
|00003e40| 49 50 20 22 28 5c 66 49 | 73 74 72 69 6e 67 5c 66 |IP "(\fI|string\f|
|00003e50| 50 29 20 5b 20 5e 20 5c | 66 49 61 74 74 72 69 62 |P) [ ^ \|fIattrib|
|00003e60| 75 74 65 73 5c 66 50 20 | 5d 22 0a 58 4c 6f 61 64 |utes\fP |]".XLoad|
|00003e70| 20 61 20 70 69 78 6d 61 | 70 20 66 72 6f 6d 20 74 | a pixma|p from t|
|00003e80| 68 65 20 66 69 6c 65 20 | 6e 61 6d 65 64 20 62 79 |he file |named by|
|00003e90| 20 5c 66 49 73 74 72 69 | 6e 67 5c 66 50 20 61 6e | \fIstri|ng\fP an|
|00003ea0| 64 0a 58 74 69 6c 65 20 | 74 68 65 20 67 61 64 67 |d.Xtile |the gadg|
|00003eb0| 65 74 20 77 69 74 68 20 | 69 74 20 28 73 65 65 20 |et with |it (see |
|00003ec0| 61 6c 73 6f 3a 20 5c 66 | 42 70 61 74 68 5c 66 50 |also: \f|Bpath\fP|
|00003ed0| 29 2e 0a 58 2e 50 50 0a | 58 41 64 64 69 74 69 6f |)..X.PP.|XAdditio|
|00003ee0| 6e 61 6c 20 5c 66 49 61 | 74 74 72 69 62 75 74 65 |nal \fIa|ttribute|
|00003ef0| 73 5c 66 50 20 6d 61 79 | 20 62 65 20 73 70 65 63 |s\fP may| be spec|
|00003f00| 69 66 69 65 64 20 61 66 | 74 65 72 20 61 20 27 5e |ified af|ter a '^|
|00003f10| 27 20 28 63 61 72 65 74 | 29 0a 58 63 68 61 72 61 |' (caret|).Xchara|
|00003f20| 63 74 65 72 20 69 6e 20 | 74 68 65 20 66 6f 72 6d |cter in |the form|
|00003f30| 3a 0a 58 2e 49 50 20 22 | 5c 66 49 6f 66 66 73 65 |:.X.IP "|\fIoffse|
|00003f40| 74 5c 66 50 7c 5c 66 49 | 67 72 61 76 69 74 79 5c |t\fP|\fI|gravity\|
|00003f50| 66 50 7c 5c 66 49 66 6f | 72 65 67 72 6f 75 6e 64 |fP|\fIfo|reground|
|00003f60| 5c 66 50 7c 5c 66 49 62 | 61 63 6b 67 72 6f 75 6e |\fP|\fIb|ackgroun|
|00003f70| 64 5c 66 50 7c 5c 66 49 | 66 6f 6e 74 5c 66 50 22 |d\fP|\fI|font\fP"|
|00003f80| 0a 58 41 6e 79 20 6f 6d | 69 74 74 65 64 20 70 61 |.XAny om|itted pa|
|00003f90| 72 61 6d 65 74 65 72 73 | 20 77 69 6c 6c 20 62 65 |rameters| will be|
|00003fa0| 20 73 65 74 20 74 6f 20 | 64 65 66 61 75 6c 74 20 | set to |default |
|00003fb0| 76 61 6c 75 65 73 2e 0a | 58 2e 49 50 0a 58 5c 66 |values..|X.IP.X\f|
|00003fc0| 49 6f 66 66 73 65 74 5c | 66 50 20 69 73 20 61 6e |Ioffset\|fP is an|
|00003fd0| 20 69 6e 74 65 67 65 72 | 20 73 70 65 63 69 66 79 | integer| specify|
|00003fe0| 69 6e 67 20 68 6f 77 20 | 66 61 72 20 74 6f 20 70 |ing how |far to p|
|00003ff0| 6c 61 63 65 20 74 68 69 | 73 0a 58 67 61 64 67 65 |lace thi|s.Xgadge|
|00004000| 74 20 66 72 6f 6d 20 69 | 74 73 20 6e 65 61 72 65 |t from i|ts neare|
|00004010| 73 74 20 6e 65 69 67 68 | 62 6f 72 20 28 6f 72 20 |st neigh|bor (or |
|00004020| 61 6e 20 65 64 67 65 29 | 2e 20 44 65 66 61 75 6c |an edge)|. Defaul|
|00004030| 74 0a 58 6f 66 66 73 65 | 74 20 69 73 20 5c 66 42 |t.Xoffse|t is \fB|
|00004040| 67 61 64 67 65 74 2e 70 | 61 64 5c 66 50 2c 20 6f |gadget.p|ad\fP, o|
|00004050| 72 20 32 20 69 66 20 5c | 66 42 67 61 64 67 65 74 |r 2 if \|fBgadget|
|00004060| 2e 70 61 64 5c 66 50 20 | 69 73 20 6e 6f 74 0a 58 |.pad\fP |is not.X|
|00004070| 64 65 66 69 6e 65 64 2e | 0a 58 2e 49 50 0a 58 5c |defined.|.X.IP.X\|
|00004080| 66 49 67 72 61 76 69 74 | 79 5c 66 50 20 69 73 20 |fIgravit|y\fP is |
|00004090| 6f 6e 65 20 6f 66 20 5c | 66 42 4e 6f 47 72 61 76 |one of \|fBNoGrav|
|000040a0| 69 74 79 5c 66 50 2c 20 | 5c 66 42 4c 65 66 74 47 |ity\fP, |\fBLeftG|
|000040b0| 72 61 76 69 74 79 5c 66 | 50 2c 0a 58 5c 66 42 52 |ravity\f|P,.X\fBR|
|000040c0| 69 67 68 74 47 72 61 76 | 69 74 79 5c 66 50 20 6f |ightGrav|ity\fP o|
|000040d0| 72 20 5c 66 42 43 65 6e | 74 65 72 47 72 61 76 69 |r \fBCen|terGravi|
|000040e0| 74 79 5c 66 50 2e 20 5c | 66 42 4e 6f 47 72 61 76 |ty\fP. \|fBNoGrav|
|000040f0| 69 74 79 5c 66 50 20 73 | 70 65 63 69 66 69 65 73 |ity\fP s|pecifies|
|00004100| 20 74 68 61 74 0a 58 74 | 68 65 20 67 61 64 67 65 | that.Xt|he gadge|
|00004110| 74 20 69 73 20 74 6f 20 | 62 65 20 70 6c 61 63 65 |t is to |be place|
|00004120| 64 20 6f 70 70 6f 73 69 | 74 65 20 6f 66 20 77 68 |d opposi|te of wh|
|00004130| 65 72 65 76 65 72 20 74 | 68 65 20 6c 61 73 74 20 |erever t|he last |
|00004140| 67 61 64 67 65 74 20 77 | 61 73 0a 58 70 6c 61 63 |gadget w|as.Xplac|
|00004150| 65 64 2e 0a 58 5c 66 42 | 4c 65 66 74 47 72 61 76 |ed..X\fB|LeftGrav|
|00004160| 69 74 79 5c 66 50 20 73 | 70 65 63 69 66 69 65 73 |ity\fP s|pecifies|
|00004170| 20 74 68 61 74 20 74 68 | 65 20 67 61 64 67 65 74 | that th|e gadget|
|00004180| 20 73 68 6f 75 6c 64 20 | 73 74 69 63 6b 20 74 6f | should |stick to|
|00004190| 0a 58 74 68 65 20 6c 65 | 66 74 20 6f 66 20 74 68 |.Xthe le|ft of th|
|000041a0| 65 20 74 69 74 6c 65 20 | 62 61 72 2c 20 5c 66 42 |e title |bar, \fB|
|000041b0| 52 69 67 68 74 47 72 61 | 76 69 74 79 5c 66 50 20 |RightGra|vity\fP |
|000041c0| 74 6f 20 74 68 65 20 72 | 69 67 68 74 20 61 6e 64 |to the r|ight and|
|000041d0| 0a 58 5c 66 42 43 65 6e | 74 65 72 47 72 61 76 69 |.X\fBCen|terGravi|
|000041e0| 74 79 5c 66 50 20 74 6f | 20 74 68 65 20 63 65 6e |ty\fP to| the cen|
|000041f0| 74 65 72 2e 0a 58 2e 49 | 50 0a 58 5c 66 49 66 6f |ter..X.I|P.X\fIfo|
|00004200| 72 65 67 72 6f 75 6e 64 | 5c 66 50 20 61 6e 64 20 |reground|\fP and |
|00004210| 5c 66 49 62 61 63 6b 67 | 72 6f 75 6e 64 5c 66 50 |\fIbackg|round\fP|
|00004220| 20 73 70 65 63 69 66 79 | 20 74 68 65 20 63 6f 6c | specify| the col|
|00004230| 6f 72 73 20 75 73 65 64 | 20 74 6f 0a 58 74 69 6c |ors used| to.Xtil|
|00004240| 65 20 74 68 65 20 67 61 | 64 67 65 74 20 6f 72 20 |e the ga|dget or |
|00004250| 64 72 61 77 20 74 68 65 | 20 74 65 78 74 2e 0a 58 |draw the| text..X|
|00004260| 2e 49 50 0a 58 5c 66 49 | 66 6f 6e 74 5c 66 50 20 |.IP.X\fI|font\fP |
|00004270| 69 73 20 74 68 65 20 6e | 61 6d 65 20 6f 66 20 74 |is the n|ame of t|
|00004280| 68 65 20 66 6f 6e 74 20 | 79 6f 75 20 77 61 6e 74 |he font |you want|
|00004290| 20 74 68 65 20 67 61 64 | 67 65 74 27 73 20 6e 61 | the gad|get's na|
|000042a0| 6d 65 0a 58 64 72 61 77 | 6e 20 69 6e 2e 20 54 68 |me.Xdraw|n in. Th|
|000042b0| 69 73 20 6f 76 65 72 72 | 69 64 65 73 20 74 68 65 |is overr|ides the|
|000042c0| 20 5c 66 42 67 61 64 67 | 65 74 2e 66 6f 6e 74 5c | \fBgadg|et.font\|
|000042d0| 66 50 20 73 65 74 74 69 | 6e 67 20 66 6f 72 20 74 |fP setti|ng for t|
|000042e0| 68 69 73 0a 58 67 61 64 | 67 65 74 2e 0a 58 2e 49 |his.Xgad|get..X.I|
|000042f0| 50 0a 58 54 68 65 20 64 | 65 66 61 75 6c 74 20 76 |P.XThe d|efault v|
|00004300| 61 6c 75 65 73 20 66 6f | 72 20 5c 66 49 61 74 74 |alues fo|r \fIatt|
|00004310| 72 69 62 75 74 65 73 5c | 66 50 20 61 72 65 20 30 |ributes\|fP are 0|
|00004320| 2c 20 5c 66 42 4e 6f 47 | 72 61 76 69 74 79 5c 66 |, \fBNoG|ravity\f|
|00004330| 50 2c 20 62 6c 61 63 6b | 0a 58 28 5c 66 42 72 65 |P, black|.X(\fBre|
|00004340| 76 65 72 73 65 5c 66 50 | 3a 20 77 68 69 74 65 29 |verse\fP|: white)|
|00004350| 20 61 6e 64 20 77 68 69 | 74 65 20 28 5c 66 42 72 | and whi|te (\fBr|
|00004360| 65 76 65 72 73 65 5c 66 | 50 3a 20 62 6c 61 63 6b |everse\f|P: black|
|00004370| 29 2c 20 74 68 65 20 73 | 65 74 74 69 6e 67 0a 58 |), the s|etting.X|
|00004380| 6f 66 20 5c 66 42 67 61 | 64 67 65 74 2e 66 6f 6e |of \fBga|dget.fon|
|00004390| 74 5c 66 50 2e 0a 58 2e | 50 50 0a 58 49 74 20 69 |t\fP..X.|PP.XIt i|
|000043a0| 73 20 69 6d 70 6f 72 74 | 61 6e 74 20 74 6f 20 6e |s import|ant to n|
|000043b0| 6f 74 65 20 74 68 61 74 | 20 69 6e 20 74 68 65 20 |ote that| in the |
|000043c0| 61 62 73 65 6e 63 65 20 | 6f 66 20 61 20 5c 66 49 |absence |of a \fI|
|000043d0| 67 72 61 76 69 74 79 5c | 66 50 20 73 70 65 63 69 |gravity\|fP speci|
|000043e0| 66 69 63 61 74 69 6f 6e | 0a 58 28 69 2e 65 2e 20 |fication|.X(i.e. |
|000043f0| 77 65 27 76 65 20 64 65 | 66 61 75 6c 74 65 64 20 |we've de|faulted |
|00004400| 74 6f 20 5c 66 42 4e 6f | 47 72 61 76 69 74 79 5c |to \fBNo|Gravity\|
|00004410| 66 50 29 2c 20 74 68 65 | 20 77 69 6e 64 6f 77 20 |fP), the| window |
|00004420| 6d 61 6e 61 67 65 72 20 | 77 69 6c 6c 0a 58 61 75 |manager |will.Xau|
|00004430| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 20 70 6c 61 63 |tomatica|lly plac|
|00004440| 65 20 61 20 67 61 64 67 | 65 74 20 6f 6e 20 74 68 |e a gadg|et on th|
|00004450| 65 20 73 69 64 65 20 6f | 70 70 6f 73 69 74 65 20 |e side o|pposite |
|00004460| 6f 66 20 74 68 65 20 6c | 61 73 74 20 67 61 64 67 |of the l|ast gadg|
|00004470| 65 74 0a 58 70 6c 61 63 | 65 64 2e 20 49 66 20 69 |et.Xplac|ed. If i|
|00004480| 74 27 73 20 74 68 65 20 | 66 69 72 73 74 20 67 61 |t's the |first ga|
|00004490| 64 67 65 74 20 70 6c 61 | 63 65 64 2c 20 69 74 20 |dget pla|ced, it |
|000044a0| 77 69 6c 6c 20 67 6f 20 | 74 6f 20 74 68 65 20 72 |will go |to the r|
|000044b0| 69 67 68 74 2e 0a 58 54 | 68 75 73 20 69 6e 20 74 |ight..XT|hus in t|
|000044c0| 68 65 20 61 62 73 65 6e | 63 65 20 6f 66 20 61 6e |he absen|ce of an|
|000044d0| 79 20 5c 66 49 67 72 61 | 76 69 74 79 5c 66 50 20 |y \fIgra|vity\fP |
|000044e0| 28 6f 72 20 5c 66 49 6f | 66 66 73 65 74 5c 66 50 |(or \fIo|ffset\fP|
|000044f0| 29 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 73 |) specif|ications|
|00004500| 2c 0a 58 74 68 65 20 77 | 69 6e 64 6f 77 20 6d 61 |,.Xthe w|indow ma|
|00004510| 6e 61 67 65 72 20 77 69 | 6c 6c 20 70 6c 61 63 65 |nager wi|ll place|
|00004520| 20 67 61 64 67 65 74 73 | 20 69 6e 20 61 20 72 69 | gadgets| in a ri|
|00004530| 67 68 74 2d 6c 65 66 74 | 2d 72 69 67 68 74 20 66 |ght-left|-right f|
|00004540| 61 73 68 69 6f 6e 0a 58 | 75 6e 74 69 6c 20 61 6c |ashion.X|until al|
|00004550| 6c 20 67 61 64 67 65 74 | 73 20 68 61 76 65 20 62 |l gadget|s have b|
|00004560| 65 65 6e 20 70 6c 61 63 | 65 64 2e 0a 58 2e 50 50 |een plac|ed..X.PP|
|00004570| 0a 58 46 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0a 58 |.XFor ex|ample:.X|
|00004580| 2e 45 58 0a 58 67 61 64 | 67 65 74 5b 30 5d 20 3d |.EX.Xgad|get[0] =|
|00004590| 20 22 64 69 65 22 0a 58 | 67 61 64 67 65 74 5b 31 | "die".X|gadget[1|
|000045a0| 5d 20 3d 20 28 72 65 73 | 69 7a 65 2e 62 29 20 5e |] = (res|ize.b) ^|
|000045b0| 20 32 20 7c 20 72 65 64 | 20 7c 20 6f 72 61 6e 67 | 2 | red| | orang|
|000045c0| 65 0a 58 67 61 64 67 65 | 74 5b 32 5d 20 3d 20 28 |e.Xgadge|t[2] = (|
|000045d0| 69 63 6f 6e 62 6f 78 2e | 62 29 20 5e 20 7c 20 4c |iconbox.|b) ^ | L|
|000045e0| 65 66 74 47 72 61 76 69 | 74 79 0a 58 67 61 64 67 |eftGravi|ty.Xgadg|
|000045f0| 65 74 5b 33 5d 20 3d 20 | 22 5c 5c 35 36 22 20 5e |et[3] = |"\\56" ^|
|00004600| 20 7c 20 4c 65 66 74 47 | 72 61 76 69 74 79 20 7c | | LeftG|ravity ||
|00004610| 20 67 72 65 65 6e 20 7c | 20 62 6c 61 63 6b 20 7c | green || black ||
|00004620| 20 63 75 72 73 6f 72 0a | 58 2e 45 45 0a 58 2e 50 | cursor.|X.EE.X.P|
|00004630| 50 0a 58 54 68 65 73 65 | 20 64 65 63 6c 61 72 61 |P.XThese| declara|
|00004640| 74 69 6f 6e 73 20 77 69 | 6c 6c 20 63 72 65 61 74 |tions wi|ll creat|
|00004650| 65 20 34 20 67 61 64 67 | 65 74 20 62 6f 78 65 73 |e 4 gadg|et boxes|
|00004660| 2c 20 73 69 74 75 61 74 | 65 64 20 69 6e 20 74 68 |, situat|ed in th|
|00004670| 65 0a 58 66 6f 6c 6c 6f | 77 69 6e 67 20 6d 61 6e |e.Xfollo|wing man|
|00004680| 6e 65 72 3a 0a 58 2e 50 | 50 0a 58 54 68 65 20 66 |ner:.X.P|P.XThe f|
|00004690| 69 72 73 74 20 67 61 64 | 67 65 74 20 62 6f 78 20 |irst gad|get box |
|000046a0| 77 69 6c 6c 20 62 65 20 | 63 72 65 61 74 65 64 20 |will be |created |
|000046b0| 77 69 64 65 20 65 6e 6f | 75 67 68 20 74 6f 20 70 |wide eno|ugh to p|
|000046c0| 72 69 6e 74 20 74 68 65 | 0a 58 77 6f 72 64 20 22 |rint the|.Xword "|
|000046d0| 64 69 65 22 20 69 6e 20 | 69 74 20 28 69 6e 20 77 |die" in |it (in w|
|000046e0| 68 61 74 65 76 65 72 20 | 67 61 64 67 65 74 20 66 |hatever |gadget f|
|000046f0| 6f 6e 74 20 68 61 73 20 | 62 65 65 6e 20 64 65 66 |ont has |been def|
|00004700| 69 6e 65 64 29 20 61 6e | 64 0a 58 77 69 6c 6c 20 |ined) an|d.Xwill |
|00004710| 62 65 20 70 6c 61 63 65 | 64 20 6f 6e 20 74 68 65 |be place|d on the|
|00004720| 20 72 69 67 68 74 20 73 | 69 64 65 20 28 73 69 6e | right s|ide (sin|
|00004730| 63 65 20 69 74 20 68 61 | 73 6e 27 74 20 63 68 6f |ce it ha|sn't cho|
|00004740| 73 65 6e 20 61 20 67 72 | 61 76 69 74 79 29 0a 58 |sen a gr|avity).X|
|00004750| 61 67 61 69 6e 73 74 20 | 74 68 65 20 65 64 67 65 |against |the edge|
|00004760| 20 28 73 69 6e 63 65 20 | 69 74 20 68 61 73 6e 27 | (since |it hasn'|
|00004770| 74 20 63 68 6f 73 65 6e | 20 61 6e 20 6f 66 66 73 |t chosen| an offs|
|00004780| 65 74 29 2e 0a 58 42 61 | 63 6b 67 72 6f 75 6e 64 |et)..XBa|ckground|
|00004790| 20 61 6e 64 20 66 6f 72 | 65 67 72 6f 75 6e 64 20 | and for|eground |
|000047a0| 63 6f 6c 6f 72 73 20 77 | 69 6c 6c 20 62 65 20 62 |colors w|ill be b|
|000047b0| 6c 61 63 6b 20 61 6e 64 | 20 77 68 69 74 65 0a 58 |lack and| white.X|
|000047c0| 28 61 73 73 69 67 6e 6d | 65 6e 74 20 64 65 70 65 |(assignm|ent depe|
|000047d0| 6e 64 69 6e 67 20 6f 6e | 20 77 68 65 74 68 65 72 |nding on| whether|
|000047e0| 20 5c 66 42 72 65 76 65 | 72 73 65 5c 66 50 20 69 | \fBreve|rse\fP i|
|000047f0| 73 20 73 65 74 29 2e 0a | 58 2e 50 50 0a 58 54 68 |s set)..|X.PP.XTh|
|00004800| 65 20 73 65 63 6f 6e 64 | 20 67 61 64 67 65 74 20 |e second| gadget |
|00004810| 62 6f 78 20 77 69 6c 6c | 20 62 65 20 74 69 6c 65 |box will| be tile|
|00004820| 64 20 77 69 74 68 20 74 | 68 65 20 63 6f 6e 74 65 |d with t|he conte|
|00004830| 6e 74 73 20 6f 66 20 74 | 68 65 0a 58 66 69 6c 65 |nts of t|he.Xfile|
|00004840| 20 22 72 65 73 69 7a 65 | 2e 62 22 20 28 61 73 73 | "resize|.b" (ass|
|00004850| 75 6d 69 6e 67 20 74 68 | 61 74 20 69 74 27 73 20 |uming th|at it's |
|00004860| 61 20 76 61 6c 69 64 20 | 62 69 74 6d 61 70 20 66 |a valid |bitmap f|
|00004870| 69 6c 65 29 20 61 6e 64 | 0a 58 77 69 6c 6c 20 67 |ile) and|.Xwill g|
|00004880| 6f 20 6f 6e 20 74 68 65 | 20 6c 65 66 74 20 73 69 |o on the| left si|
|00004890| 64 65 20 28 73 69 6e 63 | 65 20 69 74 20 61 6c 73 |de (sinc|e it als|
|000048a0| 6f 20 68 61 73 20 6e 6f | 20 67 72 61 76 69 74 79 |o has no| gravity|
|000048b0| 20 61 6e 64 20 74 68 65 | 0a 58 6c 61 73 74 20 6f | and the|.Xlast o|
|000048c0| 6e 65 20 77 65 6e 74 20 | 6f 6e 20 74 68 65 20 72 |ne went |on the r|
|000048d0| 69 67 68 74 29 2e 20 49 | 74 20 77 69 6c 6c 20 62 |ight). I|t will b|
|000048e0| 65 20 6f 66 66 73 65 74 | 20 66 72 6f 6d 20 74 68 |e offset| from th|
|000048f0| 65 20 65 64 67 65 20 62 | 79 20 32 0a 58 70 69 78 |e edge b|y 2.Xpix|
|00004900| 65 6c 73 20 73 69 6e 63 | 65 20 74 68 65 72 65 20 |els sinc|e there |
|00004910| 77 61 73 20 61 6e 20 6f | 66 66 73 65 74 20 66 6f |was an o|ffset fo|
|00004920| 72 20 69 74 2e 20 46 6f | 72 65 67 72 6f 75 6e 64 |r it. Fo|reground|
|00004930| 20 77 69 6c 6c 20 62 65 | 0a 58 72 65 64 2c 20 62 | will be|.Xred, b|
|00004940| 61 63 6b 67 72 6f 75 6e | 64 20 77 69 6c 6c 20 62 |ackgroun|d will b|
|00004950| 65 20 6f 72 61 6e 67 65 | 2e 0a 58 2e 50 50 0a 58 |e orange|..X.PP.X|
|00004960| 54 68 65 20 74 68 69 72 | 64 20 67 61 64 67 65 74 |The thir|d gadget|
|00004970| 20 77 69 6c 6c 20 62 65 | 20 74 69 6c 65 64 20 77 | will be| tiled w|
|00004980| 69 74 68 20 74 68 65 20 | 63 6f 6e 74 65 6e 74 73 |ith the |contents|
|00004990| 20 6f 66 20 22 69 63 6f | 6e 62 6f 78 2e 62 22 0a | of "ico|nbox.b".|
|000049a0| 58 61 6e 64 20 77 69 6c | 6c 20 62 65 20 70 6c 61 |Xand wil|l be pla|
|000049b0| 63 65 64 20 61 67 61 69 | 6e 73 74 20 74 68 65 20 |ced agai|nst the |
|000049c0| 73 65 63 6f 6e 64 20 67 | 61 64 67 65 74 20 6f 6e |second g|adget on|
|000049d0| 20 74 68 65 20 6c 65 66 | 74 20 68 61 6e 64 0a 58 | the lef|t hand.X|
|000049e0| 73 69 64 65 20 73 69 6e | 63 65 20 77 65 20 73 70 |side sin|ce we sp|
|000049f0| 65 63 69 66 69 65 64 20 | 61 20 67 72 61 76 69 74 |ecified |a gravit|
|00004a00| 79 2e 20 43 6f 6c 6f 72 | 73 20 77 69 6c 6c 20 62 |y. Color|s will b|
|00004a10| 65 20 62 6c 61 63 6b 20 | 61 6e 64 20 77 68 69 74 |e black |and whit|
|00004a20| 65 0a 58 28 64 65 70 65 | 6e 64 69 6e 67 20 6f 6e |e.X(depe|nding on|
|00004a30| 20 5c 66 42 72 65 76 65 | 72 73 65 5c 66 50 29 2e | \fBreve|rse\fP).|
|00004a40| 0a 58 2e 50 50 0a 58 54 | 68 65 20 66 6f 75 72 74 |.X.PP.XT|he fourt|
|00004a50| 68 20 67 61 64 67 65 74 | 20 77 69 6c 6c 20 64 69 |h gadget| will di|
|00004a60| 73 70 6c 61 79 20 67 6c | 79 70 68 20 23 35 36 20 |splay gl|yph #56 |
|00004a70| 66 72 6f 6d 20 74 68 65 | 20 63 75 72 73 6f 72 20 |from the| cursor |
|00004a80| 66 6f 6e 74 0a 58 69 6e | 20 67 72 65 65 6e 20 61 |font.Xin| green a|
|00004a90| 6e 64 20 62 6c 61 63 6b | 20 28 69 74 27 73 20 67 |nd black| (it's g|
|00004aa0| 75 6d 62 79 20 6f 66 20 | 63 6f 75 72 73 65 29 2e |umby of |course).|
|00004ab0| 0a 58 2e 50 50 0a 58 49 | 4d 50 4f 52 54 41 4e 54 |.X.PP.XI|MPORTANT|
|00004ac0| 3a 20 47 61 64 67 65 74 | 73 20 6d 61 79 20 62 65 |: Gadget|s may be|
|00004ad0| 20 64 65 63 6c 61 72 65 | 64 20 69 6e 20 61 6e 79 | declare|d in any|
|00004ae0| 20 6f 72 64 65 72 2c 20 | 62 75 74 20 79 6f 75 20 | order, |but you |
|00004af0| 61 72 65 0a 58 6e 6f 74 | 20 61 6c 6c 6f 77 65 64 |are.Xnot| allowed|
|00004b00| 20 74 6f 20 6c 65 61 76 | 65 20 67 61 70 73 2c 20 | to leav|e gaps, |
|00004b10| 69 2e 65 2e 2e 69 74 27 | 73 20 70 65 72 66 65 63 |i.e..it'|s perfec|
|00004b20| 74 6c 79 20 61 63 63 65 | 70 74 61 62 6c 65 20 74 |tly acce|ptable t|
|00004b30| 6f 0a 58 64 65 63 6c 61 | 72 65 20 67 61 64 67 65 |o.Xdecla|re gadge|
|00004b40| 74 73 20 69 6e 20 74 68 | 65 20 6f 72 64 65 72 20 |ts in th|e order |
|00004b50| 30 2c 20 32 2c 20 33 2c | 20 31 2c 20 62 75 74 20 |0, 2, 3,| 1, but |
|00004b60| 5c 66 42 6e 6f 74 5c 66 | 50 20 6c 65 67 61 6c 20 |\fBnot\f|P legal |
|00004b70| 74 6f 0a 58 64 65 63 6c | 61 72 65 20 67 61 64 67 |to.Xdecl|are gadg|
|00004b80| 65 74 73 20 69 6e 20 74 | 68 65 20 6f 72 64 65 72 |ets in t|he order|
|00004b90| 20 30 2c 20 33 2c 20 32 | 2c 20 34 20 61 73 20 67 | 0, 3, 2|, 4 as g|
|00004ba0| 61 64 67 65 74 20 23 31 | 20 68 61 73 20 62 65 65 |adget #1| has bee|
|00004bb0| 6e 0a 58 6f 6d 69 74 74 | 65 64 2e 20 54 68 69 73 |n.Xomitt|ed. This|
|00004bc0| 20 72 65 73 74 72 69 63 | 74 69 6f 6e 20 6d 61 79 | restric|tion may|
|00004bd0| 20 62 65 20 72 65 6d 6f | 76 65 64 20 69 6e 20 74 | be remo|ved in t|
|00004be0| 68 65 20 66 75 74 75 72 | 65 2c 20 62 75 74 0a 58 |he futur|e, but.X|
|00004bf0| 66 6f 72 20 6e 6f 77 20 | 79 6f 75 27 6c 6c 20 67 |for now |you'll g|
|00004c00| 65 74 20 61 20 64 69 61 | 67 6e 6f 73 74 69 63 20 |et a dia|gnostic |
|00004c10| 61 6e 64 20 5c 66 49 61 | 77 6d 5c 66 50 20 77 69 |and \fIa|wm\fP wi|
|00004c20| 6c 6c 20 65 78 69 74 2e | 0a 58 2e 50 50 0a 58 41 |ll exit.|.X.PP.XA|
|00004c30| 6c 6c 20 6f 74 68 65 72 | 20 76 61 72 69 61 62 6c |ll other| variabl|
|00004c40| 65 73 20 63 6f 6e 74 72 | 6f 6c 6c 69 6e 67 20 77 |es contr|olling w|
|00004c50| 69 6e 64 6f 77 20 6d 61 | 6e 61 67 65 72 20 62 65 |indow ma|nager be|
|00004c60| 68 61 76 69 6f 72 20 61 | 72 65 20 64 65 73 63 72 |havior a|re descr|
|00004c70| 69 62 65 64 20 69 6e 0a | 58 74 68 65 20 5c 66 42 |ibed in.|Xthe \fB|
|00004c80| 58 20 44 45 46 41 55 4c | 54 53 5c 66 50 20 73 65 |X DEFAUL|TS\fP se|
|00004c90| 63 74 69 6f 6e 20 6f 66 | 20 74 68 69 73 20 6d 61 |ction of| this ma|
|00004ca0| 6e 20 70 61 67 65 2e 0a | 58 2e 50 50 0a 58 2e 53 |n page..|X.PP.X.S|
|00004cb0| 48 20 42 49 4e 44 49 4e | 47 20 53 59 4e 54 41 58 |H BINDIN|G SYNTAX|
|00004cc0| 0a 58 2e 50 50 0a 58 4d | 6f 75 73 65 20 62 75 74 |.X.PP.XM|ouse but|
|00004cd0| 74 6f 6e 73 20 6d 61 79 | 20 62 65 20 62 6f 75 6e |tons may| be boun|
|00004ce0| 64 20 74 6f 20 70 61 72 | 74 69 63 75 6c 61 72 20 |d to par|ticular |
|00004cf0| 77 69 6e 64 6f 77 20 6d | 61 6e 61 67 65 72 20 66 |window m|anager f|
|00004d00| 75 6e 63 74 69 6f 6e 73 | 20 77 69 74 68 3a 0a 58 |unctions| with:.X|
|00004d10| 2e 45 58 0a 58 22 5c 66 | 49 66 75 6e 63 74 69 6f |.EX.X"\f|Ifunctio|
|00004d20| 6e 5c 66 50 3d 5b 5c 66 | 49 6d 6f 64 69 66 69 65 |n\fP=[\f|Imodifie|
|00004d30| 72 20 6b 65 79 28 73 29 | 5c 66 50 5d 3a 5b 5c 66 |r key(s)|\fP]:[\f|
|00004d40| 49 63 6f 6e 74 65 78 74 | 5c 66 50 5d 3a 5c 66 49 |Icontext|\fP]:\fI|
|00004d50| 6d 6f 75 73 65 20 65 76 | 65 6e 74 73 5c 66 50 3a |mouse ev|ents\fP:|
|00004d60| 5c 66 49 22 20 6d 65 6e | 75 20 6e 61 6d 65 20 22 |\fI" men|u name "|
|00004d70| 5c 66 50 0a 58 2e 45 45 | 0a 58 6f 72 20 0a 58 2e |\fP.X.EE|.Xor .X.|
|00004d80| 45 58 0a 58 22 5c 66 49 | 66 75 6e 63 74 69 6f 6e |EX.X"\fI|function|
|00004d90| 5c 66 50 3d 5b 5c 66 49 | 6d 6f 64 69 66 69 65 72 |\fP=[\fI|modifier|
|00004da0| 20 6b 65 79 28 73 29 5c | 66 50 5d 3a 5b 5c 66 49 | key(s)\|fP]:[\fI|
|00004db0| 63 6f 6e 74 65 78 74 5c | 66 50 5d 3a 5c 66 49 6d |context\|fP]:\fIm|
|00004dc0| 6f 75 73 65 20 65 76 65 | 6e 74 73 5c 66 50 3a 5c |ouse eve|nts\fP:\|
|00004dd0| 66 49 22 20 74 65 78 74 | 20 61 63 74 69 6f 6e 20 |fI" text| action |
|00004de0| 22 5c 66 50 0a 58 2e 45 | 45 0a 58 2e 50 50 0a 58 |"\fP.X.E|E.X.PP.X|
|00004df0| 46 75 6e 63 74 69 6f 6e | 20 61 6e 64 20 6d 6f 75 |Function| and mou|
|00004e00| 73 65 20 65 76 65 6e 74 | 73 20 61 72 65 20 74 68 |se event|s are th|
|00004e10| 65 20 6f 6e 6c 79 20 72 | 65 71 75 69 72 65 64 20 |e only r|equired |
|00004e20| 66 69 65 6c 64 73 2e 20 | 20 54 68 65 20 6d 65 6e |fields. | The men|
|00004e30| 75 20 6e 61 6d 65 20 69 | 73 0a 58 72 65 71 75 69 |u name i|s.Xrequi|
|00004e40| 72 65 64 20 77 69 74 68 | 20 74 68 65 20 5c 66 49 |red with| the \fI|
|00004e50| 66 2e 6d 65 6e 75 5c 66 | 50 20 66 75 6e 63 74 69 |f.menu\f|P functi|
|00004e60| 6f 6e 20 64 65 66 69 6e | 69 74 69 6f 6e 20 6f 6e |on defin|ition on|
|00004e70| 6c 79 2e 0a 58 53 69 6d | 69 6c 61 72 6c 79 2c 20 |ly..XSim|ilarly, |
|00004e80| 74 65 78 74 20 61 63 74 | 69 6f 6e 20 69 73 20 72 |text act|ion is r|
|00004e90| 65 71 75 69 72 65 64 20 | 6f 6e 6c 79 20 77 69 74 |equired |only wit|
|00004ea0| 68 20 74 68 65 20 5c 66 | 49 66 2e 61 63 74 69 6f |h the \f|If.actio|
|00004eb0| 6e 5c 66 50 0a 58 66 75 | 6e 63 74 69 6f 6e 20 64 |n\fP.Xfu|nction d|
|00004ec0| 65 66 69 6e 69 74 69 6f | 6e 2e 0a 58 2e 50 50 0a |efinitio|n..X.PP.|
|00004ed0| 58 2e 53 48 20 46 75 6e | 63 74 69 6f 6e 0a 58 2e |X.SH Fun|ction.X.|
|00004ee0| 50 50 0a 58 2e 49 50 20 | 5c 66 42 66 2e 61 63 74 |PP.X.IP |\fBf.act|
|00004ef0| 69 6f 6e 5c 66 50 0a 58 | 49 6e 76 6f 6b 65 73 20 |ion\fP.X|Invokes |
|00004f00| 61 20 74 65 78 74 20 61 | 63 74 69 6f 6e 2e 20 60 |a text a|ction. `|
|00004f10| 74 65 78 74 27 20 73 68 | 6f 75 6c 64 20 62 65 20 |text' sh|ould be |
|00004f20| 69 6e 20 71 75 6f 74 65 | 73 20 77 69 74 68 20 61 |in quote|s with a|
|00004f30| 20 70 72 65 63 65 64 69 | 6e 67 0a 58 22 61 63 74 | precedi|ng.X"act|
|00004f40| 69 6f 6e 22 20 63 68 61 | 72 61 63 74 65 72 20 28 |ion" cha|racter (|
|00004f50| 6f 6e 65 20 6f 66 20 27 | 5e 27 2c 20 27 21 27 20 |one of '|^', '!' |
|00004f60| 6f 72 20 27 7c 27 29 2e | 20 54 68 65 20 73 79 6e |or '|').| The syn|
|00004f70| 74 61 78 20 69 73 20 69 | 64 65 6e 74 69 63 61 6c |tax is i|dentical|
|00004f80| 20 74 6f 0a 58 6d 65 6e | 75 20 74 65 78 74 20 61 | to.Xmen|u text a|
|00004f90| 63 74 69 6f 6e 73 20 77 | 68 69 63 68 20 61 72 65 |ctions w|hich are|
|00004fa0| 20 64 69 73 63 75 73 73 | 65 64 20 69 6e 20 67 72 | discuss|ed in gr|
|00004fb0| 65 61 74 65 72 20 64 65 | 74 61 69 6c 20 75 6e 64 |eater de|tail und|
|00004fc0| 65 72 20 74 68 65 20 5c | 66 42 4d 65 6e 75 73 5c |er the \|fBMenus\|
|00004fd0| 66 50 0a 58 73 65 63 74 | 69 6f 6e 20 6f 66 20 74 |fP.Xsect|ion of t|
|00004fe0| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 2e 0a 58 2e |his docu|ment..X.|
|00004ff0| 45 58 20 30 0a 58 2e 42 | 0a 58 66 2e 61 63 74 69 |EX 0.X.B|.Xf.acti|
|00005000| 6f 6e 3d 5b 5c 66 49 6d | 6f 64 69 66 69 65 72 20 |on=[\fIm|odifier |
|00005010| 6b 65 79 28 73 29 5c 66 | 50 5d 3a 5b 5c 66 49 63 |key(s)\f|P]:[\fIc|
|00005020| 6f 6e 74 65 78 74 20 5c | 66 50 5d 3a 5c 66 49 6d |ontext \|fP]:\fIm|
|00005030| 6f 75 73 65 20 65 76 65 | 6e 74 73 5c 66 50 3a 5c |ouse eve|nts\fP:\|
|00005040| 66 49 61 63 74 69 6f 6e | 22 20 74 65 78 74 20 22 |fIaction|" text "|
|00005050| 5c 66 50 0a 58 2e 45 45 | 0a 58 2e 49 50 20 22 5c |\fP.X.EE|.X.IP "\|
|00005060| 66 42 66 2e 62 65 65 70 | 5c 66 50 22 20 31 35 0a |fBf.beep|\fP" 15.|
|00005070| 58 65 6d 69 74 73 20 61 | 20 62 65 65 70 20 66 72 |Xemits a| beep fr|
|00005080| 6f 6d 20 74 68 65 20 6b | 65 79 62 6f 61 72 64 2e |om the k|eyboard.|
|00005090| 20 20 4c 6f 75 64 6e 65 | 73 73 20 69 73 20 64 65 | Loudne|ss is de|
|000050a0| 74 65 72 6d 69 6e 65 64 | 20 62 79 20 0a 58 74 68 |termined| by .Xth|
|000050b0| 65 20 76 6f 6c 75 6d 65 | 20 76 61 72 69 61 62 6c |e volume| variabl|
|000050c0| 65 2e 0a 58 2e 49 50 20 | 5c 66 42 66 2e 63 69 72 |e..X.IP |\fBf.cir|
|000050d0| 63 6c 65 64 6f 77 6e 5c | 66 50 0a 58 63 61 75 73 |cledown\|fP.Xcaus|
|000050e0| 65 73 20 74 68 65 20 74 | 6f 70 20 77 69 6e 64 6f |es the t|op windo|
|000050f0| 77 20 74 68 61 74 20 69 | 73 20 6f 62 73 63 75 72 |w that i|s obscur|
|00005100| 69 6e 67 20 61 6e 6f 74 | 68 65 72 20 0a 58 77 69 |ing anot|her .Xwi|
|00005110| 6e 64 6f 77 20 74 6f 20 | 64 72 6f 70 20 74 6f 20 |ndow to |drop to |
|00005120| 74 68 65 20 62 6f 74 74 | 6f 6d 20 6f 66 20 74 68 |the bott|om of th|
|00005130| 65 20 73 74 61 63 6b 20 | 6f 66 20 77 69 6e 64 6f |e stack |of windo|
|00005140| 77 73 2e 20 20 0a 58 2e | 49 50 20 5c 66 42 66 2e |ws. .X.|IP \fBf.|
|00005150| 63 69 72 63 6c 65 75 70 | 5c 66 50 0a 58 65 78 70 |circleup|\fP.Xexp|
|00005160| 6f 73 65 73 20 74 68 65 | 20 6c 6f 77 65 73 74 20 |oses the| lowest |
|00005170| 77 69 6e 64 6f 77 20 74 | 68 61 74 20 69 73 20 6f |window t|hat is o|
|00005180| 62 73 63 75 72 65 64 20 | 62 79 20 6f 74 68 65 72 |bscured |by other|
|00005190| 0a 58 77 69 6e 64 6f 77 | 73 2e 20 0a 58 2e 49 50 |.Xwindow|s. .X.IP|
|000051a0| 20 5c 66 42 66 2e 63 6f | 6e 74 69 6e 75 65 5c 66 | \fBf.co|ntinue\f|
|000051b0| 50 0a 58 72 65 6c 65 61 | 73 65 73 20 74 68 65 20 |P.Xrelea|ses the |
|000051c0| 77 69 6e 64 6f 77 20 73 | 65 72 76 65 72 20 64 69 |window s|erver di|
|000051d0| 73 70 6c 61 79 20 61 63 | 74 69 6f 6e 20 61 66 74 |splay ac|tion aft|
|000051e0| 65 72 20 79 6f 75 20 0a | 58 73 74 6f 70 20 61 63 |er you .|Xstop ac|
|000051f0| 74 69 6f 6e 20 77 69 74 | 68 20 74 68 65 20 5c 66 |tion wit|h the \f|
|00005200| 42 66 2e 70 61 75 73 65 | 5c 66 50 20 66 75 6e 63 |Bf.pause|\fP func|
|00005210| 74 69 6f 6e 2e 20 20 0a | 58 2e 49 50 20 5c 66 42 |tion. .|X.IP \fB|
|00005220| 66 2e 64 65 73 74 72 6f | 79 5c 66 50 0a 58 63 61 |f.destro|y\fP.Xca|
|00005230| 6c 6c 73 20 58 4b 69 6c | 6c 43 6c 69 65 6e 74 20 |lls XKil|lClient |
|00005240| 6f 6e 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 20 |on the s|elected |
|00005250| 77 69 6e 64 6f 77 2e 20 | 55 73 65 20 77 69 74 68 |window. |Use with|
|00005260| 20 63 61 75 74 69 6f 6e | 21 21 20 42 69 6e 64 69 | caution|!! Bindi|
|00005270| 6e 67 20 69 74 20 74 6f | 0a 58 6e 61 6b 65 64 20 |ng it to|.Xnaked |
|00005280| 6d 6f 75 73 65 20 62 75 | 74 74 6f 6e 73 20 69 73 |mouse bu|ttons is|
|00005290| 20 70 72 6f 62 61 62 6c | 79 20 6e 6f 74 20 61 20 | probabl|y not a |
|000052a0| 67 6f 6f 64 20 69 64 65 | 61 21 0a 58 2e 49 50 20 |good ide|a!.X.IP |
|000052b0| 5c 66 42 66 2e 65 78 69 | 74 5c 66 50 0a 58 65 78 |\fBf.exi|t\fP.Xex|
|000052c0| 69 74 73 20 74 68 65 20 | 77 69 6e 64 6f 77 20 6d |its the |window m|
|000052d0| 61 6e 61 67 65 72 2e 20 | 49 66 20 79 6f 75 27 76 |anager. |If you'v|
|000052e0| 65 20 73 74 61 72 74 65 | 64 20 5c 66 49 61 77 6d |e starte|d \fIawm|
|000052f0| 5c 66 50 20 66 72 6f 6d | 0a 58 5c 66 49 78 69 6e |\fP from|.X\fIxin|
|00005300| 69 74 5c 66 52 20 28 61 | 63 74 75 61 6c 6c 79 20 |it\fR (a|ctually |
|00005310| 73 6f 72 74 20 6f 66 20 | 75 73 65 66 75 6c 20 6e |sort of |useful n|
|00005320| 6f 77 20 74 68 61 74 20 | 74 68 65 20 5c 66 42 5c |ow that |the \fB\|
|00005330| 2d 65 5c 66 50 20 66 6c | 61 67 0a 58 68 61 73 20 |-e\fP fl|ag.Xhas |
|00005340| 62 65 65 6e 20 61 64 64 | 65 64 29 2c 20 74 68 69 |been add|ed), thi|
|00005350| 73 20 77 69 6c 6c 20 61 | 6c 73 6f 20 65 78 69 74 |s will a|lso exit|
|00005360| 20 74 68 65 20 77 69 6e | 64 6f 77 20 73 79 73 74 | the win|dow syst|
|00005370| 65 6d 2e 0a 58 2e 49 50 | 20 5c 66 42 66 2e 66 6f |em..X.IP| \fBf.fo|
|00005380| 63 75 73 5c 66 50 0a 58 | 64 69 72 65 63 74 73 20 |cus\fP.X|directs |
|00005390| 61 6c 6c 20 6b 65 79 62 | 6f 61 72 64 20 69 6e 70 |all keyb|oard inp|
|000053a0| 75 74 20 74 6f 20 74 68 | 65 20 73 65 6c 65 63 74 |ut to th|e select|
|000053b0| 65 64 20 77 69 6e 64 6f | 77 2e 0a 58 54 6f 20 72 |ed windo|w..XTo r|
|000053c0| 65 73 65 74 20 74 68 65 | 20 66 6f 63 75 73 20 74 |eset the| focus t|
|000053d0| 6f 20 61 6c 6c 20 77 69 | 6e 64 6f 77 73 2c 20 69 |o all wi|ndows, i|
|000053e0| 6e 76 6f 6b 65 20 5c 66 | 49 66 2e 66 6f 63 75 73 |nvoke \f|If.focus|
|000053f0| 5c 66 50 20 66 72 6f 6d | 20 74 68 65 20 72 6f 6f |\fP from| the roo|
|00005400| 74 0a 58 77 69 6e 64 6f | 77 2e 0a 58 2e 49 50 20 |t.Xwindo|w..X.IP |
|00005410| 5c 66 42 66 2e 69 63 6f | 6e 69 66 79 5c 66 50 0a |\fBf.ico|nify\fP.|
|00005420| 58 57 68 65 6e 20 69 6d | 70 6c 65 6d 65 6e 74 65 |XWhen im|plemente|
|00005430| 64 20 66 72 6f 6d 20 61 | 20 77 69 6e 64 6f 77 2c |d from a| window,|
|00005440| 20 74 68 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 63 | this fu|nction c|
|00005450| 6f 6e 76 65 72 74 73 20 | 74 68 65 20 77 69 6e 64 |onverts |the wind|
|00005460| 6f 77 20 0a 58 74 6f 20 | 69 74 73 20 72 65 73 70 |ow .Xto |its resp|
|00005470| 65 63 74 69 76 65 20 69 | 63 6f 6e 2e 20 20 57 68 |ective i|con. Wh|
|00005480| 65 6e 20 69 6d 70 6c 65 | 6d 65 6e 74 65 64 20 66 |en imple|mented f|
|00005490| 72 6f 6d 20 61 6e 20 69 | 63 6f 6e 2c 20 0a 58 66 |rom an i|con, .Xf|
|000054a0| 2e 69 63 6f 6e 69 66 79 | 20 63 6f 6e 76 65 72 74 |.iconify| convert|
|000054b0| 73 20 74 68 65 20 69 63 | 6f 6e 20 74 6f 20 69 74 |s the ic|on to it|
|000054c0| 73 20 72 65 73 70 65 63 | 74 69 76 65 20 77 69 6e |s respec|tive win|
|000054d0| 64 6f 77 2e 20 20 0a 58 | 2e 49 50 20 5c 66 42 66 |dow. .X|.IP \fBf|
|000054e0| 2e 6c 6f 63 6b 5c 66 50 | 0a 58 6c 6f 63 6b 73 20 |.lock\fP|.Xlocks |
|000054f0| 74 68 65 20 73 63 72 65 | 65 6e 20 62 79 20 64 69 |the scre|en by di|
|00005500| 73 70 6c 61 79 69 6e 67 | 20 72 61 6e 64 6f 6d 20 |splaying| random |
|00005510| 28 61 6e 64 20 73 6f 6d | 65 77 68 61 74 20 70 72 |(and som|ewhat pr|
|00005520| 65 74 74 79 29 20 70 61 | 74 74 65 72 6e 73 2e 0a |etty) pa|tterns..|
|00005530| 58 54 68 65 20 6c 6f 63 | 6b 20 63 61 6e 20 62 65 |XThe loc|k can be|
|00005540| 20 65 78 69 74 65 64 20 | 62 79 20 74 79 70 69 6e | exited |by typin|
|00005550| 67 20 69 6e 20 79 6f 75 | 72 20 70 61 73 73 77 6f |g in you|r passwo|
|00005560| 72 64 20 6f 72 20 70 75 | 6c 6c 69 6e 67 20 74 68 |rd or pu|lling th|
|00005570| 65 20 70 6f 77 65 72 0a | 58 63 6f 72 64 20 66 6f |e power.|Xcord fo|
|00005580| 72 20 79 6f 75 72 20 73 | 79 73 74 65 6d 20 6f 75 |r your s|ystem ou|
|00005590| 74 20 6f 66 20 69 74 73 | 20 73 6f 63 6b 65 74 2e |t of its| socket.|
|000055a0| 0a 58 2e 49 50 20 5c 66 | 42 66 2e 6c 6f 77 65 72 |.X.IP \f|Bf.lower|
|000055b0| 5c 66 50 0a 58 6c 6f 77 | 65 72 73 20 61 20 77 69 |\fP.Xlow|ers a wi|
|000055c0| 6e 64 6f 77 20 74 68 61 | 74 20 69 73 20 6f 62 73 |ndow tha|t is obs|
|000055d0| 74 72 75 63 74 69 6e 67 | 20 61 20 77 69 6e 64 6f |tructing| a windo|
|000055e0| 77 20 62 65 6c 6f 77 20 | 69 74 2e 0a 58 2e 49 50 |w below |it..X.IP|
|000055f0| 20 5c 66 42 66 2e 6d 65 | 6e 75 5c 66 50 0a 58 69 | \fBf.me|nu\fP.Xi|
|00005600| 6e 76 6f 6b 65 73 20 61 | 20 6d 65 6e 75 2e 20 20 |nvokes a| menu. |
|00005610| 45 6e 63 6c 6f 73 65 20 | 60 6d 65 6e 75 20 6e 61 |Enclose |`menu na|
|00005620| 6d 65 27 20 69 6e 20 71 | 75 6f 74 65 73 20 69 66 |me' in q|uotes if|
|00005630| 20 69 74 0a 58 63 6f 6e | 74 61 69 6e 73 20 62 6c | it.Xcon|tains bl|
|00005640| 61 6e 6b 20 63 68 61 72 | 61 63 74 65 72 73 20 6f |ank char|acters o|
|00005650| 72 20 70 61 72 65 6e 74 | 68 65 73 65 73 2e 20 20 |r parent|heses. |
|00005660| 0a 58 2e 45 58 20 30 0a | 58 2e 42 0a 58 66 2e 6d |.X.EX 0.|X.B.Xf.m|
|00005670| 65 6e 75 3d 5b 5c 66 49 | 6d 6f 64 69 66 69 65 72 |enu=[\fI|modifier|
|00005680| 20 6b 65 79 28 73 29 5c | 66 50 5d 3a 5b 5c 66 49 | key(s)\|fP]:[\fI|
|00005690| 63 6f 6e 74 65 78 74 20 | 5c 66 50 5d 3a 5c 66 49 |context |\fP]:\fI|
|000056a0| 6d 6f 75 73 65 20 65 76 | 65 6e 74 73 5c 66 50 3a |mouse ev|ents\fP:|
|000056b0| 5c 66 49 22 20 6d 65 6e | 75 20 6e 61 6d 65 20 22 |\fI" men|u name "|
|000056c0| 5c 66 50 0a 58 2e 45 45 | 0a 58 2e 49 50 20 5c 66 |\fP.X.EE|.X.IP \f|
|000056d0| 42 66 2e 6d 6f 76 65 5c | 66 50 0a 58 6d 6f 76 65 |Bf.move\|fP.Xmove|
|000056e0| 73 20 61 20 77 69 6e 64 | 6f 77 20 6f 72 20 69 63 |s a wind|ow or ic|
|000056f0| 6f 6e 20 74 6f 20 61 20 | 6e 65 77 20 6c 6f 63 61 |on to a |new loca|
|00005700| 74 69 6f 6e 2c 20 77 68 | 69 63 68 20 62 65 63 6f |tion, wh|ich beco|
|00005710| 6d 65 73 20 74 68 65 0a | 58 64 65 66 61 75 6c 74 |mes the.|Xdefault|
|00005720| 20 6c 6f 63 61 74 69 6f | 6e 2e 0a 58 2e 49 50 20 | locatio|n..X.IP |
|00005730| 5c 66 42 66 2e 6d 6f 76 | 65 6f 70 61 71 75 65 5c |\fBf.mov|eopaque\|
|00005740| 66 50 0a 58 6d 6f 76 65 | 73 20 61 20 77 69 6e 64 |fP.Xmove|s a wind|
|00005750| 6f 77 20 6f 72 20 69 63 | 6f 6e 20 74 6f 20 61 20 |ow or ic|on to a |
|00005760| 6e 65 77 20 73 63 72 65 | 65 6e 20 6c 6f 63 61 74 |new scre|en locat|
|00005770| 69 6f 6e 2e 20 20 57 68 | 65 6e 20 75 73 69 6e 67 |ion. Wh|en using|
|00005780| 20 74 68 69 73 0a 58 66 | 75 6e 63 74 69 6f 6e 2c | this.Xf|unction,|
|00005790| 20 74 68 65 20 65 6e 74 | 69 72 65 20 77 69 6e 64 | the ent|ire wind|
|000057a0| 6f 77 20 6f 72 20 69 63 | 6f 6e 20 69 73 20 6d 6f |ow or ic|on is mo|
|000057b0| 76 65 64 20 74 6f 20 74 | 68 65 20 6e 65 77 20 73 |ved to t|he new s|
|000057c0| 63 72 65 65 6e 0a 58 6c | 6f 63 61 74 69 6f 6e 2e |creen.Xl|ocation.|
|000057d0| 20 20 54 68 65 20 67 72 | 69 64 20 65 66 66 65 63 | The gr|id effec|
|000057e0| 74 20 69 73 20 6e 6f 74 | 20 75 73 65 64 20 77 69 |t is not| used wi|
|000057f0| 74 68 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |th this |function|
|00005800| 2e 0a 58 2e 49 50 20 5c | 66 42 66 2e 6e 65 61 74 |..X.IP \|fBf.neat|
|00005810| 65 6e 5c 66 50 0a 58 6e | 65 61 74 65 6e 73 20 74 |en\fP.Xn|eatens t|
|00005820| 68 65 20 64 65 73 6b 74 | 6f 70 20 75 73 69 6e 67 |he deskt|op using|
|00005830| 20 74 68 65 20 52 54 4c | 20 6e 65 61 74 65 6e 20 | the RTL| neaten |
|00005840| 70 61 63 6b 61 67 65 2e | 20 53 65 65 20 74 68 65 |package.| See the|
|00005850| 20 5c 66 42 58 20 44 45 | 46 41 55 4c 54 53 5c 66 | \fBX DE|FAULTS\f|
|00005860| 50 0a 58 66 6f 72 20 74 | 68 65 20 72 65 73 6f 75 |P.Xfor t|he resou|
|00005870| 72 63 65 73 20 6e 65 63 | 65 73 73 61 72 79 20 74 |rces nec|essary t|
|00005880| 6f 20 63 75 73 74 6f 6d | 69 7a 65 20 74 68 69 73 |o custom|ize this|
|00005890| 20 73 6f 6d 65 77 68 61 | 74 20 63 6f 6d 70 6c 65 | somewha|t comple|
|000058a0| 78 20 66 65 61 74 75 72 | 65 2e 0a 58 54 68 69 73 |x featur|e..XThis|
|000058b0| 20 66 75 6e 63 74 69 6f | 6e 20 6f 6e 6c 79 20 77 | functio|n only w|
|000058c0| 6f 72 6b 73 20 69 66 20 | 5c 66 49 61 77 6d 5c 66 |orks if |\fIawm\f|
|000058d0| 50 20 68 61 73 20 62 65 | 65 6e 20 63 6f 6d 70 69 |P has be|en compi|
|000058e0| 6c 65 64 20 77 69 74 68 | 20 74 68 65 20 2d 44 4e |led with| the -DN|
|000058f0| 45 41 54 45 4e 0a 58 66 | 6c 61 67 20 28 77 68 69 |EATEN.Xf|lag (whi|
|00005900| 63 68 20 63 6f 6d 70 69 | 6c 65 73 20 69 6e 20 74 |ch compi|les in t|
|00005910| 68 65 20 6e 65 61 74 65 | 6e 20 70 61 63 6b 61 67 |he neate|n packag|
|00005920| 65 29 2e 20 49 6e 76 6f | 6b 69 6e 67 20 74 68 69 |e). Invo|king thi|
|00005930| 73 20 66 75 6e 63 74 69 | 6f 6e 20 77 69 74 68 6f |s functi|on witho|
|00005940| 75 74 0a 58 74 68 69 73 | 20 69 73 20 61 20 6e 6f |ut.Xthis| is a no|
|00005950| 6f 70 20 28 74 68 6f 75 | 67 68 20 61 20 77 61 72 |op (thou|gh a war|
|00005960| 6e 69 6e 67 20 64 69 61 | 67 6e 6f 73 74 69 63 20 |ning dia|gnostic |
|00005970| 69 73 20 70 72 69 6e 74 | 65 64 20 74 6f 20 73 74 |is print|ed to st|
|00005980| 64 65 72 72 29 2e 0a 58 | 53 65 65 20 74 68 65 20 |derr)..X|See the |
|00005990| 49 4e 53 54 41 4c 4c 41 | 54 49 4f 4e 20 73 65 63 |INSTALLA|TION sec|
|000059a0| 74 69 6f 6e 20 6f 66 20 | 74 68 65 20 52 45 41 44 |tion of |the READ|
|000059b0| 4d 45 20 64 6f 63 75 6d | 65 6e 74 20 66 6f 72 20 |ME docum|ent for |
|000059c0| 6d 6f 72 65 20 64 65 74 | 61 69 6c 73 2e 0a 58 2e |more det|ails..X.|
|000059d0| 49 50 20 5c 66 42 66 2e | 6e 65 77 69 63 6f 6e 69 |IP \fBf.|newiconi|
|000059e0| 66 79 5c 66 50 0a 58 61 | 6c 6c 6f 77 73 20 79 6f |fy\fP.Xa|llows yo|
|000059f0| 75 20 74 6f 20 63 72 65 | 61 74 65 20 61 20 77 69 |u to cre|ate a wi|
|00005a00| 6e 64 6f 77 20 6f 72 20 | 69 63 6f 6e 20 61 6e 64 |ndow or |icon and|
|00005a10| 20 74 68 65 6e 20 70 6f | 73 69 74 69 6f 6e 20 74 | then po|sition t|
|00005a20| 68 65 20 77 69 6e 64 6f | 77 20 6f 72 0a 58 69 63 |he windo|w or.Xic|
|00005a30| 6f 6e 20 69 6e 20 61 20 | 6e 65 77 20 64 65 66 61 |on in a |new defa|
|00005a40| 75 6c 74 20 6c 6f 63 61 | 74 69 6f 6e 20 6f 6e 20 |ult loca|tion on |
|00005a50| 74 68 65 20 73 63 72 65 | 65 6e 2e 0a 58 2e 49 50 |the scre|en..X.IP|
|00005a60| 20 5c 66 42 66 2e 70 61 | 75 73 65 5c 66 50 0a 58 | \fBf.pa|use\fP.X|
|00005a70| 74 65 6d 70 6f 72 61 72 | 69 6c 79 20 73 74 6f 70 |temporar|ily stop|
|00005a80| 73 20 61 6c 6c 20 64 69 | 73 70 6c 61 79 20 61 63 |s all di|splay ac|
|00005a90| 74 69 6f 6e 2e 20 20 54 | 6f 20 72 65 6c 65 61 73 |tion. T|o releas|
|00005aa0| 65 20 74 68 65 20 73 63 | 72 65 65 6e 20 61 6e 64 |e the sc|reen and|
|00005ab0| 0a 58 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 75 70 |.Ximmedi|ately up|
|00005ac0| 64 61 74 65 20 61 6c 6c | 20 77 69 6e 64 6f 77 73 |date all| windows|
|00005ad0| 2c 20 75 73 65 20 74 68 | 65 20 5c 66 42 66 2e 63 |, use th|e \fBf.c|
|00005ae0| 6f 6e 74 69 6e 75 65 5c | 66 50 20 66 75 6e 63 74 |ontinue\|fP funct|
|00005af0| 69 6f 6e 2e 0a 58 2e 49 | 50 20 5c 66 42 66 2e 70 |ion..X.I|P \fBf.p|
|00005b00| 75 73 68 64 6f 77 6e 5c | 66 50 0a 58 6d 6f 76 65 |ushdown\|fP.Xmove|
|00005b10| 73 20 61 20 77 69 6e 64 | 6f 77 20 64 6f 77 6e 2e |s a wind|ow down.|
|00005b20| 20 20 0a 58 54 68 65 20 | 64 69 73 74 61 6e 63 65 | .XThe |distance|
|00005b30| 20 6f 66 20 74 68 65 20 | 70 75 73 68 20 69 73 20 | of the |push is |
|00005b40| 64 65 74 65 72 6d 69 6e | 65 64 20 62 79 20 74 68 |determin|ed by th|
|00005b50| 65 20 70 75 73 68 20 76 | 61 72 69 61 62 6c 65 73 |e push v|ariables|
|00005b60| 2e 0a 58 2e 49 50 20 5c | 66 42 66 2e 70 75 73 68 |..X.IP \|fBf.push|
|00005b70| 6c 65 66 74 5c 66 50 0a | 58 6d 6f 76 65 73 20 61 |left\fP.|Xmoves a|
|00005b80| 20 77 69 6e 64 6f 77 20 | 74 6f 20 74 68 65 20 6c | window |to the l|
|00005b90| 65 66 74 2e 20 20 0a 58 | 54 68 65 20 64 69 73 74 |eft. .X|The dist|
|00005ba0| 61 6e 63 65 20 6f 66 20 | 74 68 65 20 70 75 73 68 |ance of |the push|
|00005bb0| 20 69 73 20 64 65 74 65 | 72 6d 69 6e 65 64 20 62 | is dete|rmined b|
|00005bc0| 79 20 74 68 65 20 70 75 | 73 68 20 76 61 72 69 61 |y the pu|sh varia|
|00005bd0| 62 6c 65 73 2e 0a 58 2e | 49 50 20 5c 66 42 66 2e |bles..X.|IP \fBf.|
|00005be0| 70 75 73 68 72 69 67 68 | 74 5c 66 50 0a 58 6d 6f |pushrigh|t\fP.Xmo|
|00005bf0| 76 65 73 20 61 20 77 69 | 6e 64 6f 77 20 74 6f 20 |ves a wi|ndow to |
|00005c00| 74 68 65 20 72 69 67 68 | 74 2e 20 20 0a 58 54 68 |the righ|t. .XTh|
|00005c10| 65 20 64 69 73 74 61 6e | 63 65 20 6f 66 20 74 68 |e distan|ce of th|
|00005c20| 65 20 70 75 73 68 20 69 | 73 20 64 65 74 65 72 6d |e push i|s determ|
|00005c30| 69 6e 65 64 20 62 79 20 | 74 68 65 20 70 75 73 68 |ined by |the push|
|00005c40| 20 76 61 72 69 61 62 6c | 65 73 2e 0a 58 2e 49 50 | variabl|es..X.IP|
|00005c50| 20 5c 66 42 66 2e 70 75 | 73 68 75 70 5c 66 50 0a | \fBf.pu|shup\fP.|
|00005c60| 58 6d 6f 76 65 73 20 61 | 20 77 69 6e 64 6f 77 20 |Xmoves a| window |
|00005c70| 75 70 2e 20 20 0a 58 54 | 68 65 20 64 69 73 74 61 |up. .XT|he dista|
|00005c80| 6e 63 65 20 6f 66 20 74 | 68 65 20 70 75 73 68 20 |nce of t|he push |
|00005c90| 69 73 20 64 65 74 65 72 | 6d 69 6e 65 64 20 62 79 |is deter|mined by|
|00005ca0| 20 74 68 65 20 70 75 73 | 68 20 76 61 72 69 61 62 | the pus|h variab|
|00005cb0| 6c 65 73 2e 0a 58 2e 49 | 50 20 5c 66 42 66 2e 72 |les..X.I|P \fBf.r|
|00005cc0| 61 69 73 65 5c 66 50 0a | 58 72 61 69 73 65 73 20 |aise\fP.|Xraises |
|00005cd0| 61 20 77 69 6e 64 6f 77 | 20 74 68 61 74 20 69 73 |a window| that is|
|00005ce0| 20 62 65 69 6e 67 20 6f | 62 73 74 72 75 63 74 65 | being o|bstructe|
|00005cf0| 64 20 62 79 20 61 20 77 | 69 6e 64 6f 77 0a 58 61 |d by a w|indow.Xa|
|00005d00| 62 6f 76 65 20 69 74 2e | 0a 58 2e 49 50 20 5c 66 |bove it.|.X.IP \f|
|00005d10| 42 66 2e 72 65 66 72 65 | 73 68 5c 66 50 0a 58 72 |Bf.refre|sh\fP.Xr|
|00005d20| 65 73 75 6c 74 73 20 69 | 6e 20 65 78 70 6f 73 75 |esults i|n exposu|
|00005d30| 72 65 20 65 76 65 6e 74 | 73 20 62 65 69 6e 67 20 |re event|s being |
|00005d40| 73 65 6e 74 20 74 6f 20 | 74 68 65 20 77 69 6e 64 |sent to |the wind|
|00005d50| 6f 77 20 73 65 72 76 65 | 72 20 63 6c 69 65 6e 74 |ow serve|r client|
|00005d60| 73 20 0a 58 66 6f 72 20 | 61 6c 6c 20 65 78 70 6f |s .Xfor |all expo|
|00005d70| 73 65 64 20 6f 72 20 70 | 61 72 74 69 61 6c 6c 79 |sed or p|artially|
|00005d80| 20 65 78 70 6f 73 65 64 | 20 77 69 6e 64 6f 77 73 | exposed| windows|
|00005d90| 2e 0a 58 54 68 65 20 77 | 69 6e 64 6f 77 73 20 77 |..XThe w|indows w|
|00005da0| 69 6c 6c 20 6e 6f 74 20 | 72 65 66 72 65 73 68 20 |ill not |refresh |
|00005db0| 63 6f 72 72 65 63 74 6c | 79 20 69 66 20 74 68 65 |correctl|y if the|
|00005dc0| 20 65 78 70 6f 73 75 72 | 65 20 65 76 65 6e 74 73 | exposur|e events|
|00005dd0| 20 0a 58 61 72 65 20 6e | 6f 74 20 68 61 6e 64 6c | .Xare n|ot handl|
|00005de0| 65 64 20 70 72 6f 70 65 | 72 6c 79 2e 0a 58 2e 49 |ed prope|rly..X.I|
|00005df0| 50 20 5c 66 42 66 2e 72 | 65 73 69 7a 65 5c 66 50 |P \fBf.r|esize\fP|
|00005e00| 0a 58 72 65 73 69 7a 65 | 73 20 61 6e 20 65 78 69 |.Xresize|s an exi|
|00005e10| 73 74 69 6e 67 20 77 69 | 6e 64 6f 77 2e 20 20 4e |sting wi|ndow. N|
|00005e20| 6f 74 65 20 74 68 61 74 | 20 73 6f 6d 65 20 63 6c |ote that| some cl|
|00005e30| 69 65 6e 74 73 2c 20 6e | 6f 74 61 62 6c 79 0a 58 |ients, n|otably.X|
|00005e40| 65 64 69 74 6f 72 73 2c | 20 72 65 61 63 74 20 75 |editors,| react u|
|00005e50| 6e 70 72 65 64 69 63 74 | 61 62 6c 79 20 69 66 20 |npredict|ably if |
|00005e60| 79 6f 75 20 72 65 73 69 | 7a 65 20 74 68 65 20 77 |you resi|ze the w|
|00005e70| 69 6e 64 6f 77 20 77 68 | 69 6c 65 20 74 68 65 0a |indow wh|ile the.|
|00005e80| 58 63 6c 69 65 6e 74 20 | 69 73 20 72 75 6e 6e 69 |Xclient |is runni|
|00005e90| 6e 67 2e 0a 58 2e 49 50 | 20 5c 66 42 66 2e 72 65 |ng..X.IP| \fBf.re|
|00005ea0| 73 74 61 72 74 5c 66 50 | 0a 58 63 61 75 73 65 73 |start\fP|.Xcauses|
|00005eb0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 6d 61 6e 61 | the win|dow mana|
|00005ec0| 67 65 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ger appl|ication |
|00005ed0| 74 6f 20 72 65 73 74 61 | 72 74 2c 0a 58 72 65 74 |to resta|rt,.Xret|
|00005ee0| 72 61 63 69 6e 67 20 74 | 68 65 20 5c 66 49 61 77 |racing t|he \fIaw|
|00005ef0| 6d 5c 66 50 20 73 65 61 | 72 63 68 20 70 61 74 68 |m\fP sea|rch path|
|00005f00| 20 61 6e 64 20 69 6e 69 | 74 69 61 6c 69 7a 69 6e | and ini|tializin|
|00005f10| 67 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 73 20 |g the va|riables |
|00005f20| 69 74 0a 58 66 69 6e 64 | 73 2e 0a 58 2e 49 50 20 |it.Xfind|s..X.IP |
|00005f30| 5c 66 42 66 2e 5c 66 50 | 5b 5c 66 42 6e 6f 5c 66 |\fBf.\fP|[\fBno\f|
|00005f40| 50 5d 5c 66 42 64 65 63 | 6f 72 61 74 65 5c 66 50 |P]\fBdec|orate\fP|
|00005f50| 0a 58 61 64 64 73 20 6f | 72 20 72 65 6d 6f 76 65 |.Xadds o|r remove|
|00005f60| 73 20 22 64 65 63 6f 72 | 61 74 69 6f 6e 73 22 20 |s "decor|ations" |
|00005f70| 6f 6e 20 74 68 65 20 73 | 65 6c 65 63 74 65 64 20 |on the s|elected |
|00005f80| 77 69 6e 64 6f 77 2e 20 | 57 68 61 74 20 64 65 63 |window. |What dec|
|00005f90| 6f 72 61 74 69 6f 6e 73 | 20 61 72 65 0a 58 61 64 |orations| are.Xad|
|00005fa0| 64 65 64 20 28 6f 72 20 | 64 65 6c 65 74 65 64 29 |ded (or |deleted)|
|00005fb0| 20 64 65 70 65 6e 64 73 | 20 6f 6e 20 74 68 65 20 | depends| on the |
|00005fc0| 73 65 74 74 69 6e 67 73 | 20 6f 66 20 76 61 72 69 |settings| of vari|
|00005fd0| 6f 75 73 20 62 6f 6f 6c | 65 61 6e 73 20 61 6e 64 |ous bool|eans and|
|00005fe0| 0a 58 63 6c 69 65 6e 74 | 2d 73 70 65 63 69 66 69 |.Xclient|-specifi|
|00005ff0| 63 20 72 65 73 6f 75 72 | 63 65 73 20 28 73 65 65 |c resour|ces (see|
|00006000| 3a 20 5c 66 42 53 50 45 | 43 49 41 4c 20 52 45 53 |: \fBSPE|CIAL RES|
|00006010| 4f 55 52 43 45 53 5c 66 | 50 29 2e 0a 58 0a 58 54 |OURCES\f|P)..X.XT|
|00006020| 68 65 20 62 6f 6f 6c 65 | 61 6e 73 20 5c 66 42 74 |he boole|ans \fBt|
|00006030| 69 74 6c 65 73 5c 66 50 | 2c 20 5c 66 42 67 61 64 |itles\fP|, \fBgad|
|00006040| 67 65 74 73 5c 66 50 20 | 61 6e 64 20 5c 66 42 62 |gets\fP |and \fBb|
|00006050| 6f 72 64 65 72 43 6f 6e | 74 65 78 74 2e 77 69 64 |orderCon|text.wid|
|00006060| 74 68 5c 66 50 0a 58 63 | 75 72 72 65 6e 74 6c 79 |th\fP.Xc|urrently|
|00006070| 20 69 6e 66 6c 75 65 6e | 63 65 20 5c 66 42 61 77 | influen|ce \fBaw|
|00006080| 6d 5c 66 50 27 73 20 63 | 68 6f 69 63 65 20 6f 66 |m\fP's c|hoice of|
|00006090| 20 64 65 66 61 75 6c 74 | 20 64 65 63 6f 72 61 74 | default| decorat|
|000060a0| 69 6f 6e 73 2e 0a 58 2e | 50 50 0a 58 2e 53 48 20 |ions..X.|PP.X.SH |
|000060b0| 4d 6f 64 69 66 69 65 72 | 20 4b 65 79 73 0a 58 2e |Modifier| Keys.X.|
|000060c0| 50 50 0a 58 49 74 20 69 | 73 20 70 72 65 66 65 72 |PP.XIt i|s prefer|
|000060d0| 61 62 6c 65 20 74 6f 20 | 75 73 65 20 6d 65 74 61 |able to |use meta|
|000060e0| 20 61 73 20 61 20 6d 6f | 64 69 66 69 65 72 20 6b | as a mo|difier k|
|000060f0| 65 79 20 66 6f 72 20 5c | 66 42 61 77 6d 5c 66 50 |ey for \|fBawm\fP|
|00006100| 20 28 6f 72 0a 58 61 6e | 79 20 6f 74 68 65 72 20 | (or.Xan|y other |
|00006110| 77 69 6e 64 6f 77 20 6d | 61 6e 61 67 65 72 2c 20 |window m|anager, |
|00006120| 66 6f 72 20 74 68 61 74 | 20 6d 61 74 74 65 72 29 |for that| matter)|
|00006130| 2c 20 62 75 74 20 6f 6e | 65 20 6d 61 79 20 61 6c |, but on|e may al|
|00006140| 73 6f 0a 58 75 73 65 20 | 63 74 72 6c 2c 20 73 68 |so.Xuse |ctrl, sh|
|00006150| 69 66 74 2c 20 6c 6f 63 | 6b 2c 20 6f 72 20 6e 75 |ift, loc|k, or nu|
|00006160| 6c 6c 20 28 6e 6f 20 6d | 6f 64 69 66 69 65 72 20 |ll (no m|odifier |
|00006170| 6b 65 79 29 2e 20 20 0a | 58 4d 6f 64 69 66 69 65 |key). .|XModifie|
|00006180| 72 20 6b 65 79 73 20 6d | 75 73 74 20 62 65 20 65 |r keys m|ust be e|
|00006190| 6e 74 65 72 65 64 20 69 | 6e 20 6c 6f 77 65 72 20 |ntered i|n lower |
|000061a0| 63 61 73 65 2c 20 61 6e | 64 20 63 61 6e 20 62 65 |case, an|d can be|
|000061b0| 0a 58 61 62 62 72 65 76 | 69 61 74 65 64 20 61 73 |.Xabbrev|iated as|
|000061c0| 3a 20 63 2c 20 6c 2c 20 | 6d 2c 20 73 20 20 66 6f |: c, l, |m, s fo|
|000061d0| 72 20 63 74 72 6c 2c 20 | 6c 6f 63 6b 2c 20 6d 65 |r ctrl, |lock, me|
|000061e0| 74 61 2c 20 61 6e 64 20 | 73 68 69 66 74 2c 0a 58 |ta, and |shift,.X|
|000061f0| 72 65 73 70 65 63 74 69 | 76 65 6c 79 2e 20 49 74 |respecti|vely. It|
|00006200| 27 73 20 61 6c 73 6f 20 | 70 65 72 6d 69 73 73 69 |'s also |permissi|
|00006210| 62 6c 65 20 74 6f 20 72 | 65 66 65 72 20 74 6f 20 |ble to r|efer to |
|00006220| 74 68 65 20 74 68 65 20 | 6d 6f 64 69 66 69 65 72 |the the |modifier|
|00006230| 0a 58 6b 65 79 73 20 64 | 69 72 65 63 74 6c 79 20 |.Xkeys d|irectly |
|00006240| 61 73 20 22 6d 6f 64 31 | 2c 20 6d 6f 64 32 2c 20 |as "mod1|, mod2, |
|00006250| 6d 6f 64 33 2c 20 6d 6f | 64 34 20 6f 72 20 6d 6f |mod3, mo|d4 or mo|
|00006260| 64 35 22 2e 20 41 20 6d | 6f 75 73 65 20 62 75 74 |d5". A m|ouse but|
|00006270| 74 6f 6e 0a 58 77 69 74 | 68 20 6e 6f 20 6d 6f 64 |ton.Xwit|h no mod|
|00006280| 69 66 69 65 72 20 6b 65 | 79 28 73 29 20 69 73 20 |ifier ke|y(s) is |
|00006290| 6f 66 74 65 6e 20 72 65 | 66 65 72 72 65 64 20 74 |often re|ferred t|
|000062a0| 6f 20 61 73 20 61 20 22 | 6e 61 6b 65 64 22 20 6d |o as a "|naked" m|
|000062b0| 6f 75 73 65 0a 58 62 75 | 74 74 6f 6e 2e 0a 58 2e |ouse.Xbu|tton..X.|
|000062c0| 50 50 0a 58 59 6f 75 20 | 6d 61 79 20 62 69 6e 64 |PP.XYou |may bind|
|000062d0| 20 61 6e 79 20 6e 75 6d | 62 65 72 20 6f 66 20 6d | any num|ber of m|
|000062e0| 6f 64 69 66 69 65 72 20 | 6b 65 79 73 20 74 6f 20 |odifier |keys to |
|000062f0| 61 20 66 75 6e 63 74 69 | 6f 6e 2c 0a 58 75 73 65 |a functi|on,.Xuse|
|00006300| 20 74 68 65 20 62 61 72 | 20 28 7c 29 20 63 68 61 | the bar| (|) cha|
|00006310| 72 61 63 74 65 72 20 74 | 6f 20 63 6f 6d 62 69 6e |racter t|o combin|
|00006320| 65 20 74 68 65 6d 2e 0a | 58 2e 50 50 0a 58 2e 53 |e them..|X.PP.X.S|
|00006330| 48 20 43 6f 6e 74 65 78 | 74 0a 58 2e 50 50 0a 58 |H Contex|t.X.PP.X|
|00006340| 54 68 65 20 63 6f 6e 74 | 65 78 74 20 72 65 66 65 |The cont|ext refe|
|00006350| 72 73 20 74 6f 20 74 68 | 65 20 73 63 72 65 65 6e |rs to th|e screen|
|00006360| 20 6c 6f 63 61 74 69 6f | 6e 20 6f 66 20 74 68 65 | locatio|n of the|
|00006370| 20 63 75 72 73 6f 72 20 | 77 68 65 6e 20 61 20 0a | cursor |when a .|
|00006380| 58 63 6f 6d 6d 61 6e 64 | 20 69 73 20 69 6e 69 74 |Xcommand| is init|
|00006390| 69 61 74 65 64 2e 20 20 | 57 68 65 6e 20 79 6f 75 |iated. |When you|
|000063a0| 20 69 6e 63 6c 75 64 65 | 20 61 20 63 6f 6e 74 65 | include| a conte|
|000063b0| 78 74 20 65 6e 74 72 79 | 20 69 6e 20 61 20 0a 58 |xt entry| in a .X|
|000063c0| 62 69 6e 64 69 6e 67 2c | 20 74 68 65 0a 58 63 75 |binding,| the.Xcu|
|000063d0| 72 73 6f 72 20 6d 75 73 | 74 20 62 65 20 69 6e 20 |rsor mus|t be in |
|000063e0| 74 68 61 74 20 63 6f 6e | 74 65 78 74 20 6f 72 20 |that con|text or |
|000063f0| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 77 69 6c |the func|tion wil|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.