Small fixes
This commit is contained in:
parent
4f30f3b444
commit
1ed1c638a8
2 changed files with 11 additions and 3 deletions
11
bin/label
11
bin/label
|
|
@ -1,7 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
SunOS)
|
||||||
|
awk=nawk
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
awk=awk
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
label() {
|
label() {
|
||||||
echo "$@" | awk '{printf("\033];%s\007", $0);}'
|
echo "$@" | $awk '{printf("\033];%s\007", $0);}'
|
||||||
}
|
}
|
||||||
|
|
||||||
label "$@"
|
label "$@"
|
||||||
|
|
|
||||||
|
|
@ -407,9 +407,8 @@ xattach(char *label)
|
||||||
r.max.x = wattr.width;
|
r.max.x = wattr.width;
|
||||||
r.max.y = wattr.height;
|
r.max.y = wattr.height;
|
||||||
}
|
}
|
||||||
fprint(2, "new rect %dx%d\n", r.max.x, r.max.y);
|
|
||||||
}else
|
}else
|
||||||
fprint(2, "bad attrs\n");
|
fprint(2, "XGetWindowAttributes: bad attrs\n");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Allocate our local backing store.
|
* Allocate our local backing store.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue