From 46b2484eda7d205ea14972dabfa9e1b63e5fd520 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 28 May 2002 11:46:29 +0000 Subject: [PATCH] let a window snap to more than one window at a time --- src/Window.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index be1ddb20..3aabad52 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -2552,23 +2552,23 @@ void BlackboxWindow::motionNotifyEvent(XMotionEvent *me) { // snap left? if (dleft < snap_distance && dleft <= dright) { dx = winrect.left() - frame.rect.width(); - break; + continue; } // snap right? else if (dright < snap_distance) { dx = winrect.right() + 1; - break; + continue; } // snap top? if (dtop < snap_distance && dtop <= dbottom) { dy = winrect.top() - frame.rect.height(); - break; + continue; } // snap bottom? else if (dbottom < snap_distance) { dy = winrect.bottom() + 1; - break; + continue; } } -- 2.45.2