From 84e03e5542f51fc88e42b428e6c58790e0ad50eb Mon Sep 17 00:00:00 2001 From: werner Date: Sat, 24 Apr 2010 23:08:39 +0000 Subject: [PATCH] Dragging a frame into the canvas reuses the hover and drag system. In order to avoid accidently dragging away bits the selected item (and confusing the internal logic of the hover and drag system in the process), we have to make sure nothing is selected when we enter the canvas. - gui_canvas.c (canvas_frame_begin): make sure no instance is selected git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5936 99fdad57-331a-0410-800a-d7fa5415bdb3 --- gui_canvas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui_canvas.c b/gui_canvas.c index 9a2ec05..6b64cc8 100644 --- a/gui_canvas.c +++ b/gui_canvas.c @@ -192,6 +192,8 @@ static gboolean motion_notify_event(GtkWidget *widget, GdkEventMotion *event, void canvas_frame_begin(struct frame *frame) { + inst_deselect(); /* don't drag away bits of the selected object */ + redraw(); tool_push_frame(frame); }