commit 1ed1c638a8f5c8d1d3c624800448f44cee8d1a09 from: rsc date: Wed Mar 31 01:01:24 2004 UTC Small fixes commit - 4f30f3b44464f9b89512224095474200390b03e9 commit + 1ed1c638a8f5c8d1d3c624800448f44cee8d1a09 blob - e8e3e8b06d16e4abb465c8617c9975639631215b blob + 0426e354a0386706d5a24d716b9f4187f7f7b534 --- bin/label +++ bin/label @@ -1,7 +1,16 @@ #!/bin/sh +case `uname` in +SunOS) + awk=nawk + ;; +*) + awk=awk + ;; +esac + label() { - echo "$@" | awk '{printf("\033];%s\007", $0);}' + echo "$@" | $awk '{printf("\033];%s\007", $0);}' } label "$@" blob - 8d4f61c6303dbb042ea9a4cc9ae57658df54efba blob + b81b9099cd073c5d4da4489ff68467af6214cefa --- src/libdraw/x11-init.c +++ src/libdraw/x11-init.c @@ -407,9 +407,8 @@ xattach(char *label) r.max.x = wattr.width; r.max.y = wattr.height; } - fprint(2, "new rect %dx%d\n", r.max.x, r.max.y); }else - fprint(2, "bad attrs\n"); + fprint(2, "XGetWindowAttributes: bad attrs\n"); /* * Allocate our local backing store.