re xcopyplane question in article buzz apr lion bear com buzz bear com buzz moschetti write in article whaley apr sigma kpc com whaley sigma kpc com ken whaley writes actually i must also ask the faq s most popular reason why graphics don t show up do you wait for an expose event before drawing your rectangle suppose you have an idle app with a realized and mapped window that contains xlib graphics a button widget when pressed will cause a new item to be drawn in the window this action clearly should not call xcopyarea or equiv directly instead it should register the existence of the new item in a memory structure and let the expose event handler take care of rendering the image because at that time it is guaranteed that the window is mapped the problem of course is that no expose event is generated if the window is visible and mapped do you know the best way to tickle a window so that the expose event handler will be invoked to draw this new item what does this have to do with my original question i previously stated that i did an xcopyarea of the depth pixmap to the screen just to make sure that my image had data and it did this is not a problem with expose events it has to do with xcopyplane not working does anyone have a code fragment they could send demonstrating that xcopyplane works this would be very helpful thanks what it has to do with your original question is this many times beginning x users heck experienced x users too write small test programs many times they forget to draw only in response to expose events and thus see unpreditable results whereby sometimes the application s graphics show up and sometimes they don t we re just trying to eliminate all the easy explanations for why you re not seeing your graphics that being said why don t you try copying different planes to your window other than try to see it you get any output since you re dipslaying only a single plane of your data it s possible that all the pixel values in your pixmap have the same value for that color plane ken kenneth whaley kubota pacific computer inc email whaley kpc com walsh avenue santa clara ca
