diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-07 20:41:46 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-03-07 20:41:46 +0100 |
commit | 1a1b4b54b3e1553b36f18f1617ad8cb487442155 (patch) | |
tree | 0e83acc77d8d78864eec7e95be296977eeab188c /sys/src/cmd/rio | |
parent | feb6d6f0a32e5dac88d1ef46bbc4396ec44ce40b (diff) |
rio: fix goodrect() bug (thanks mike)
mike from eff0ff.net reported the following:
> I was running a second instance of rio inside a rio window and
> suddenly weird things started happening. The second instance started
> imposing arbitrary limits on the size of its windows and refused to
> resize some of its windows when its own window was resized.
> Turns out this happens if rio's screen is 3 times as high as wide
> because of a tiny mistake in its goodrect function.
... and kindly provided a patch. thanks!
Diffstat (limited to 'sys/src/cmd/rio')
-rw-r--r-- | sys/src/cmd/rio/wctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rio/wctl.c b/sys/src/cmd/rio/wctl.c index cb5acb64a..59c9246c9 100644 --- a/sys/src/cmd/rio/wctl.c +++ b/sys/src/cmd/rio/wctl.c @@ -93,7 +93,7 @@ goodrect(Rectangle r) /* reasonable sizes only please */ if(Dx(r) > BIG*Dx(screen->r)) return 0; - if(Dy(r) > BIG*Dx(screen->r)) + if(Dy(r) > BIG*Dy(screen->r)) return 0; if(Dx(r) < 100 || Dy(r) < 3*font->height) return 0; |