Skip to content
Snippets Groups Projects
Commit 276b4801 authored by Mathieu L Bouchard's avatar Mathieu L Bouchard
Browse files

reject excess calls to rtext_activate

parent 36a26365
No related branches found
No related tags found
No related merge requests found
...@@ -509,9 +509,8 @@ void rtext_activate(t_rtext *x, int state) ...@@ -509,9 +509,8 @@ void rtext_activate(t_rtext *x, int state)
int w = 0, h = 0, indx; int w = 0, h = 0, indx;
t_glist *glist = x->x_glist; t_glist *glist = x->x_glist;
t_canvas *canvas = glist_getcanvas(glist); t_canvas *canvas = glist_getcanvas(glist);
if (state && x->x_active) { //if (state && x->x_active) printf("duplicate rtext_activate\n");
printf("duplicate rtext_activate\n"); if (state == x->x_active) return; // avoid excess calls
}
if (state) if (state)
{ {
sys_vgui(".x%lx.c focus %s\n", canvas, x->x_tag); sys_vgui(".x%lx.c focus %s\n", canvas, x->x_tag);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment