Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!ira.uka.de!smurf!subnet.sub.net!mcshh!rrzbu!arne From: arne@rrzbu.hanse.de (Arne Ludwig) Newsgroups: comp.windows.x Subject: No expose after map if backing store? Message-ID: <1658@rrzbu.UUCP> Date: 15 Jan 91 01:27:15 GMT Lines: 25 As anybody knows, before drawing to a window just mapped one has to wait for an exposure event. Fine. But why does the program below hang on R4 servers with backing store and runs fine on servers without? Do I really have to ask the server if it will maintain backing store before doing the XNextEvent() or is it a bug in the server? Xswa.background_pixel = TheBackground; Xswa.backing_store = Always; TheWindow = XCreateWindow (TheDisplay, DefaultRootWindow(TheDisplay), 0,0,TheWidth,TheHeight,1, CopyFromParent,CopyFromParent, DefaultVisual(TheDisplay,TheScreen), CWBackPixel|CWBackingStore,&Xswa); XSelectInput (TheDisplay,TheWindow,ExposureMask); XMapWindow (TheDisplay,TheWindow); XNextEvent (TheDisplay,&junk); BTW. How would I ask the server if it will maintain backing store??? -- Arne Ludwig arne@rrzbu.hanse.de ...uunet!??????!rrzbu!arne