]> Dogcows Code - chaz/openbox/commitdiff
fix a seggie i introduced, going too far in the dockapps list
authorDana Jansens <danakj@orodu.net>
Fri, 11 Jul 2003 02:51:03 +0000 (02:51 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 11 Jul 2003 02:51:03 +0000 (02:51 +0000)
openbox/dock.c

index 5f7585daa1ecc47c7147502774bd22eb1eb671d9..c8f6c9a04939dffb382479118cc65d80ee02020a 100644 (file)
@@ -456,7 +456,7 @@ void dock_app_drag(ObDockApp *app, XMotionEvent *e)
 
     /* which dock app are we on top of? */
     stop = FALSE;
-    for (it = dock->dock_apps; it && !stop; it = it->next) {
+    for (it = dock->dock_apps; it; it = it->next) {
         over = it->data;
         switch (config_dock_orient) {
         case OB_ORIENTATION_HORZ:
@@ -468,6 +468,8 @@ void dock_app_drag(ObDockApp *app, XMotionEvent *e)
                 stop = TRUE;
             break;
         }
+        /* dont go to it->next! */
+        if (stop) break;
     }
     if (!it || app == over) return;
 
This page took 0.024713 seconds and 4 git commands to generate.