From 52208643a83c51819cf3b6e347dbccf22a478ad0 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sun, 7 Feb 2016 16:25:21 -0500
Subject: [PATCH] only put a new message box in floating mode (i.e., following
 the mouse) if it doesn't have an autopatch connection to the object above it

---
 pd/src/g_text.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pd/src/g_text.c b/pd/src/g_text.c
index 6371cd18d..9a783b547 100644
--- a/pd/src/g_text.c
+++ b/pd/src/g_text.c
@@ -810,7 +810,7 @@ void canvas_msg(t_glist *gl, t_symbol *s, int argc, t_atom *argv)
         glist_noselect(gl);
         glist_select(gl, &x->m_text.te_g);
         gobj_activate(&x->m_text.te_g, gl,
-            2); // <-- hack to signal we're a new message box
+            connectme ? 1 : 2); // <-- hack to signal we're a new message box
         if (connectme == 1)
             canvas_connect(gl, indx, 0, nobj, 0);
         else if (connectme == 0)
-- 
GitLab