wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit d346ce4723051312a398701ad9551ff49b958579
parent adfcb6ce0159ed1aa42d17b643cb731aeec227b5
Author: Kris Maglione <jg@suckless.org>
Date:   Tue, 27 Feb 2007 19:12:57 -0500

Replaced wmii.svg with wmii.eps and wmii.mp (wmii and XML/Inkscape don't mesh).

Diffstat:
client.c | 24++++++++++++------------
wmii.eps | 39+++++++++++++++++++++++++++++++++++++++
wmii.mp | 19+++++++++++++++++++
wmii.svg | 61-------------------------------------------------------------
4 files changed, 70 insertions(+), 73 deletions(-)

diff --git a/client.c b/client.c @@ -248,27 +248,16 @@ map_client(Client *c) { void unmap_client(Client *c, int state) { if(c->mapped) { + c->unmapped++; XSelectInput(blz.dpy, c->win, ClientMask & ~StructureNotifyMask); XUnmapWindow(blz.dpy, c->win); XSelectInput(blz.dpy, c->win, ClientMask); - c->unmapped++; set_client_state(c, state); c->mapped = 0; } } void -set_cursor(Client *c, Cursor cur) { - XSetWindowAttributes wa; - - if(c->cursor != cur) { - c->cursor = cur; - wa.cursor = cur; - XChangeWindowAttributes(blz.dpy, c->framewin, CWCursor, &wa); - } -} - -void map_frame(Client *c) { if(!c->frame_mapped) { XMapWindow(blz.dpy, c->framewin); @@ -292,6 +281,17 @@ reparent_client(Client *c, Window w, int x, int y) { } void +set_cursor(Client *c, Cursor cur) { + XSetWindowAttributes wa; + + if(c->cursor != cur) { + c->cursor = cur; + wa.cursor = cur; + XChangeWindowAttributes(blz.dpy, c->framewin, CWCursor, &wa); + } +} + +void configure_client(Client *c) { XConfigureEvent e; Frame *f; diff --git a/wmii.eps b/wmii.eps @@ -0,0 +1,39 @@ +%!PS-Adobe-2.0 EPSF-1.2 +%%Title: wmii.1 +%%Creator: MetaPost +%%CreationDate: 2007.02.27:1846 +%%For:kris kris +%%Pages: 1 +%%DocumentFonts: +%%BoundingBox: 0 0 51 27 +%%EndComments + +%%BeginProlog +save countdictstack mark newpath /showpage {} def /setpagedevice {pop} def +%%EndProlog +%%Page 1 1 +%!PS + 0 6.23616 dtransform truncate idtransform setlinewidth pop [] 0 setdash + 0 setlinecap 2 setlinejoin 10 setmiterlimit +newpath 2.83461 17.00761 moveto +2.83461 2.83461 lineto +14.17302 2.83461 lineto +14.17302 17.00761 lineto +14.17302 2.83461 lineto +25.51143 2.83461 lineto +25.51143 14.173 lineto +36.84984 14.173 lineto stroke + 0 setlinejoin +newpath 36.84984 14.173 moveto +36.84984 0 lineto +36.84984 14.173 lineto +48.18825 14.173 lineto +48.18825 0 lineto stroke +newpath 36.84984 20.40916 moveto +36.84984 26.07837 lineto stroke +newpath 48.18825 20.40916 moveto +48.18825 26.07837 lineto stroke +showpage +%%Trailer +cleartomark countdictstack exch sub { end } repeat restore +%%EOF diff --git a/wmii.mp b/wmii.mp @@ -0,0 +1,19 @@ +beginfig(1) +%u=0.6cm; +u=0.2cm; +h=3u; +space=u; +linecap:=butt; +linejoin:=beveled; +pickup pencircle scaled 1.1u; +draw (.5u,h)--(.5u,.5u)--(1.5u+space,.5u)--(1.5u+space,h)--(1.5u+space,.5u)--(2.5u+2space,.5u)\ + --(2.5u+2space,h-.5u)--(3.5u+3space,h-.5u); +linejoin:=mitered; +draw (3.5u+3space,h-.5u)--(3.5u+3space,0)--(3.5u+3space,h-.5u)--(4.5u+4space,h-.5u)--(4.5u+4space,0);; + +gap=.6u; +draw (3.5u+3space,h+gap)--(3.5u+3space,h+u+gap); +draw (4.5u+4space,h+gap)--(4.5u+4space,h+u+gap); +endfig + +end diff --git a/wmii.svg b/wmii.svg @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<!-- Created with Inkscape (http://www.inkscape.org/) --> -<svg - xmlns:dc="http://purl.org/dc/elements/1.1/" - xmlns:cc="http://web.resource.org/cc/" - xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" - xmlns:svg="http://www.w3.org/2000/svg" - xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - sodipodi:docbase="/home/zahod" - sodipodi:docname="wmii9.svg" - inkscape:version="0.41" - sodipodi:version="0.32" - version="1.0" - x="0.0000000" - y="0.0000000" - width="240.00000px" - height="120.00000px" - id="svg2"> - <metadata - id="metadata1296"> - <rdf:RDF - id="RDF1298"> - <cc:Work - id="Work1300" - rdf:about=""> - <dc:format - id="format1302">image/svg+xml</dc:format> - <dc:type - rdf:resource="http://purl.org/dc/dcmitype/StillImage" - id="type1304" /> - </cc:Work> - </rdf:RDF> - </metadata> - <sodipodi:namedview - inkscape:current-layer="svg2" - inkscape:window-y="0" - inkscape:window-x="0" - inkscape:cy="50.733714" - inkscape:cx="133.35719" - inkscape:zoom="1.6877337" - inkscape:window-height="538" - inkscape:window-width="640" - inkscape:pageshadow="2" - inkscape:pageopacity="0.0" - borderopacity="1.0" - bordercolor="#666666" - pagecolor="#ffffff" - id="base" /> - <defs - id="defs3" /> - <g - transform="translate(0.000000,-932.3622)" - id="layer1"> - <path - d="M 0.0000000,971.36227 L 26.999997,971.36227 L 26.999997,1025.3623 L 54.000004,1025.3623 L 54.000004,971.28555 L 81.310128,971.28555 L 81.310128,1025.3623 L 108.00001,1025.3623 L 108.00001,971.36227 L 240.00000,971.36227 L 240.00000,1052.3622 L 213.00001,1052.3622 L 213.00001,998.36218 L 186.00001,998.36218 L 186.00001,1052.3622 L 159.00001,1052.3622 L 159.00001,998.46222 L 132.01646,998.46222 L 132.01646,1052.3622 L 0.0000000,1052.3622 L 0.0000000,971.36227 z M 159.00001,932.36216 L 186.00001,932.36216 L 186.00001,959.36220 L 159.00001,959.36220 L 159.00001,932.36216 z M 213.00001,932.36216 L 240.00000,932.36216 L 240.00000,959.36220 L 213.00001,959.36220 L 213.00001,932.36216 z " - style="fill:#010101" - id="path1366" /> - </g> -</svg>