The real way to fix this is to make pd know as little as possible about the
GUI stuff, then things can be handled much better in pd-gui. If you are going
to put work into this, the best approach is also a more incremental approach.
This approach will also easily give Pd a scalable GUI.
* look for any sys_vgui() call in pd that sends raw Tcl
* convert this to a pd message one at a time
* push the logic to pd-gui as much as possible
For example, take src/g_vumeter.c. The drawing should all happen in
Tcl/pd-gui. Pd should just send the values to be drawn. Same goes with
g_array.c.