# HG changeset patch # User tron # Date 1100344130 0 # Node ID be6daee0afa3f8aedce4cd727d81137be68014a9 # Parent dc2452392ce465a1a407584c6284cf752417cfb4 (svn r559) Minor simplification diff -r dc2452392ce4 -r be6daee0afa3 window.c --- a/window.c Sat Nov 13 10:53:42 2004 +0000 +++ b/window.c Sat Nov 13 11:08:50 2004 +0000 @@ -806,10 +806,8 @@ int v_bottom = v->top + v->height; int v_right = v->left + v->width; if (ny + t->top >= v->top && ny + t->top < v_bottom) { - if (v->left < 13 && nx + t->left < v->left) { - ny = v_bottom; - } else if (v_right > _screen.width - 13 && - nx + t->right > v_right) { + if ((v->left < 13 && nx + t->left < v->left) || + (v_right > _screen.width - 13 && nx + t->right > v_right)) { ny = v_bottom; } else { if (nx + t->left > v->left - 13 &&