mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-22 20:04:58 +02:00
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
This commit is contained in:
parent
1cd6c924d0
commit
84e03e5542
@ -192,6 +192,8 @@ static gboolean motion_notify_event(GtkWidget *widget, GdkEventMotion *event,
|
|||||||
|
|
||||||
void canvas_frame_begin(struct frame *frame)
|
void canvas_frame_begin(struct frame *frame)
|
||||||
{
|
{
|
||||||
|
inst_deselect(); /* don't drag away bits of the selected object */
|
||||||
|
redraw();
|
||||||
tool_push_frame(frame);
|
tool_push_frame(frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user