plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 57d2613621107f7ee9d9e717c3c2903b1caf4bbe
parent 8b459713b513630ade3774c806c96dd4da29b99a
Author: rsc <devnull@localhost>
Date:   Wed, 26 Jan 2005 04:02:26 +0000

handle @ better in winsize

Diffstat:
Msrc/libdraw/x11-init.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/libdraw/x11-init.c b/src/libdraw/x11-init.c @@ -466,6 +466,10 @@ xattach(char *label) ch.x = r.min.x; ch.y = r.min.y; XConfigureWindow(_x.display, _x.drawable, CWX|CWY, &ch); + /* + * Must pretend origin is 0,0 for X. + */ + r = Rect(0,0,Dx(r),Dy(r)); } /* * Look up clipboard atom.