From: Dana Jansens Date: Tue, 28 May 2002 11:46:29 +0000 (+0000) Subject: let a window snap to more than one window at a time X-Git-Tag: openbox-1_2_2^2~23 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=46b2484eda7d205ea14972dabfa9e1b63e5fd520;p=dana%2Fopenbox.git let a window snap to more than one window at a time --- 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; } }