From 276b480165bd1bdc7cb3d528a23c5cfd63d243e5 Mon Sep 17 00:00:00 2001 From: Mathieu L Bouchard <matju@artengine.ca> Date: Thu, 14 Aug 2014 18:05:34 -0400 Subject: [PATCH] reject excess calls to rtext_activate --- pd/src/g_rtext.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pd/src/g_rtext.c b/pd/src/g_rtext.c index d87f37769..a08786692 100644 --- a/pd/src/g_rtext.c +++ b/pd/src/g_rtext.c @@ -509,9 +509,8 @@ void rtext_activate(t_rtext *x, int state) int w = 0, h = 0, indx; t_glist *glist = x->x_glist; t_canvas *canvas = glist_getcanvas(glist); - if (state && x->x_active) { - printf("duplicate rtext_activate\n"); - } + //if (state && x->x_active) printf("duplicate rtext_activate\n"); + if (state == x->x_active) return; // avoid excess calls if (state) { sys_vgui(".x%lx.c focus %s\n", canvas, x->x_tag); -- GitLab