Threaded View

GLUT - Non-shared Idle Function?

Hello all, I'm looking into making an object oriented toolkit and have ran into a bit of a snag with glut's idle function callback. The problem is that I can't seem to attach a dedicated idle function callback on a per-window basis. Is there any way to make glut accept idle functions on a per-window basis? Thanks for any help.

Below is what I have mocked together so far (It's a bit long, but cannot be further compressed for a SSCCE, sorry):
(Note: The code is in C++11, only Clang is supported, though GCC *might* work)