diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-28 11:46:29 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-28 11:46:29 +0000 |
| commit | 46b2484eda7d205ea14972dabfa9e1b63e5fd520 (patch) | |
| tree | 3f5d2623063f842bebe5d2d53e8bfac775dbb067 /src/Window.cc | |
| parent | 734a96739d92c772fa48e2fb09e3fda0e3a8c606 (diff) | |
let a window snap to more than one window at a time
Diffstat (limited to 'src/Window.cc')
| -rw-r--r-- | src/Window.cc | 8 |
1 files 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; } } |
