From 98b9c4eb1ef0907ee596cc2ddd19beb03427a062 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 26 Jul 2012 17:28:14 +0200 Subject: rio: dont shift window out to the left when its too wide for the screen --- sys/src/cmd/rio/wctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/src/cmd/rio/wctl.c b/sys/src/cmd/rio/wctl.c index 07b882c9f..2e91b0e7c 100644 --- a/sys/src/cmd/rio/wctl.c +++ b/sys/src/cmd/rio/wctl.c @@ -153,14 +153,14 @@ newrect(void) void shift(int *minp, int *maxp, int min, int max) { - if(*minp < min){ - *maxp += min-*minp; - *minp = min; - } if(*maxp > max){ *minp += max-*maxp; *maxp = max; } + if(*minp < min){ + *maxp += min-*minp; + *minp = min; + } } Rectangle -- cgit v1.2.3