From 3df0ff7854ce9a30d02cbcafbfbf894bd02aa3a3 Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 13 Nov 2004 11:08:50 +0000 Subject: [PATCH] (svn r559) Minor simplification --- window.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/window.c b/window.c index 778360affc..0982c50f3b 100644 --- a/window.c +++ b/window.c @@ -806,10 +806,8 @@ bool HandleWindowDragging() 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 &&