> Well, if you're too slow the sink might create a window on its own or > crash :) If you do it from an idle callback it will happen sooner or ... if you're too slow -- OR if the kernel is swapping, or the CPU load is too high etc. I guess that's the definition of a race condition :) Thanks again.