getWVisualID prototype moved to main.h