re monthly question about xcopyarea and expose events in article buzz apr lion bear com buzz bear com buzz moschetti writes nd posting of the question that just doesn t seem to get answered how can we resist a questions that says something like this the problem of course is that no expose event is generated if the window is already visible and mapped what we need to do is somehow tickle the window so that the expose handler is hit with arguments that will enable it to render just the part of the window that contains the new item what is the best way to tickle a window to produce this behavior if your expose event handler is truly intelligent about exposed rectangle information then you can use xcleararea to generate an expose event assuming that your background pixel is not none for the enclosing rectangle of your new item this is still not great since any other items contained within that rectangle will still be unnecessarily redrawn if your expose event handler simply redraws everything you ll be doing much more work than just drawing the new item on top of the existing scene mike yang silicon graphics inc mikey sgi com
