I try to develop a certain simulation using clearwin+. The callback to my OpenGL- window is triggered at regular intervals by a %dl-timer. I check for 'TIMER' as callback reason and then perform a new cycle of my simulation with corresponding window updates. This may take some time and runs continuously when I run what I call real-time-mode.
My OpenGL-Window covers a substantial portion of my screen and it cannot be avoided that while operating controls the mouse touches this graphic window which invokes the callback once again while it is still active. This leads to an error message and the prog aborts execution.
Of course, there is a workaround to create another window which does timecontrol only and minimize it. But is there a more elegant solution, like locking the callback while it is active performing a lenghty job?