]> Dogcows Code - chaz/openbox/commitdiff
let a window snap to more than one window at a time
authorDana Jansens <danakj@orodu.net>
Tue, 28 May 2002 11:46:29 +0000 (11:46 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 28 May 2002 11:46:29 +0000 (11:46 +0000)
src/Window.cc

index be1ddb20b5eaf183450e9031a743cb3a8950e18c..3aabad5268a1caa050e52077de8bc15fd69aa5ea 100644 (file)
@@ -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;
           }
         }
                 
This page took 0.02595 seconds and 4 git commands to generate.