X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FWindow.cc;h=3aabad5268a1caa050e52077de8bc15fd69aa5ea;hb=b48e215ca642d1973e0b1b71e632657c2679443a;hp=be1ddb20b5eaf183450e9031a743cb3a8950e18c;hpb=734a96739d92c772fa48e2fb09e3fda0e3a8c606;p=chaz%2Fopenbox 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; } }