From: Dana Jansens Date: Fri, 11 Jul 2003 02:51:03 +0000 (+0000) Subject: fix a seggie i introduced, going too far in the dockapps list X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=1546430f1277758f019b49a6f36a30162933b215;p=chaz%2Fopenbox fix a seggie i introduced, going too far in the dockapps list --- diff --git a/openbox/dock.c b/openbox/dock.c index 5f7585da..c8f6c9a0 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -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;