aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/src/g_graph.c')
-rw-r--r--pd/src/g_graph.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c
index 65a5d056..b893d42d 100644
--- a/pd/src/g_graph.c
+++ b/pd/src/g_graph.c
@@ -129,7 +129,9 @@ void glist_grab(t_glist *x, t_gobj *y, t_glistmotionfn motionfn,
t_glistkeyfn keyfn, int xpos, int ypos)
{
t_glist *x2 = glist_getcanvas(x);
- x2->gl_editor->e_onmotion = MA_PASSOUT;
+ if (motionfn)
+ x2->gl_editor->e_onmotion = MA_PASSOUT;
+ else x2->gl_editor->e_onmotion = 0;
x2->gl_editor->e_grab = y;
x2->gl_editor->e_motionfn = motionfn;
x2->gl_editor->e_keyfn = keyfn;
@@ -263,9 +265,6 @@ t_inlet *canvas_addinlet(t_canvas *x, t_pd *who, t_symbol *s)
return (ip);
}
-void canvas_deletelinesforio(t_canvas *x, t_text *text,
- t_inlet *inp, t_outlet *outp);
-
void canvas_rminlet(t_canvas *x, t_inlet *ip)
{
t_canvas *owner = x->gl_owner;