summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-12-22 00:04:51 +0100
committerGravatar Nikias Bassen2009-12-22 00:04:51 +0100
commit057b15260ef360c05c8f4c54955ca6dd25766762 (patch)
tree3d626370c07107216bbc472567855fd621be3b3a
parentddc57062079d37b10d8449a1987e174d4912ee24 (diff)
downloadsbmanager-057b15260ef360c05c8f4c54955ca6dd25766762.tar.gz
sbmanager-057b15260ef360c05c8f4c54955ca6dd25766762.tar.bz2
Attempt to quickly fix springboard and dock icon exchange
Signed-off-by: Nikias Bassen <nikias@gmx.li>
-rw-r--r--src/sbmanager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sbmanager.c b/src/sbmanager.c
index 82b6cbd..9aae5b9 100644
--- a/src/sbmanager.c
+++ b/src/sbmanager.c
@@ -591,16 +591,19 @@ static gboolean stage_motion (ClutterActor *actor, ClutterMotionEvent *event, gp
printf("icon from dock moving inside the dock!\n");
GList *found = g_list_find(dockitems, selected_item);
if (!found) {
+ selected_item->is_dock_item = TRUE;
dockitems = g_list_insert(dockitems, selected_item, 3);
}
} else {
printf("icon from dock moving outside the dock!\n");
dockitems = g_list_remove(dockitems, selected_item);
+ selected_item->is_dock_item = FALSE;
}
dock_align_icons(TRUE);
} else {
if (center_y >= dock_area.y1) {
printf("regular icon is moving inside the dock!\n");
+ selected_item->is_dock_item = TRUE;
} else {
printf("regular icon is moving!\n");
}