Index: panel-widget.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/gnome-panel/panel-widget.c,v
retrieving revision 1.380
diff -u -p -r1.380 panel-widget.c
--- panel-widget.c	9 Aug 2005 13:00:16 -0000	1.380
+++ panel-widget.c	23 Aug 2005 08:47:22 -0000
@@ -1195,7 +1195,7 @@ panel_widget_right_stick(PanelWidget *pa
 
 	ad = list->data;
 	do { 
-		i = ad->constrained;
+		i = ad->pos;
 		ad->pos = ad->constrained = pos--;
 		ad->cells = 1;
 		prev = list;
@@ -1203,7 +1203,7 @@ panel_widget_right_stick(PanelWidget *pa
 		if(!list)
 			break;
 		ad = list->data;
-	} while(ad->constrained + ad->cells == i);
+	} while(ad->pos + ad->cells >= i);
 
 	for (list = prev; list; list = list->next)
 		emit_applet_moved (panel, list->data);
