glutIdleFunc causing problems on XP

Hi, I am having a problem with the mouse flickering caused by the glutIdleFunc. The problem only exists on windows XP… I really have no clue where to start looking except maybe I can start writing my own operating system and go from there haha. On windows 2000 and 98 the test program works fine.

Just wondering if anyone actually had a clue what is going on?