[comp.windows.x] Problem with XtPopdown?

kmy@mel.dit.csiro.au (Kid Mun Yap) (01/22/91)

In a program I am writing using Xt, the user is given the option of popping down a certain window after it has been popped up. The problem is that if the user happens to do this while other events (particularly expose events) are being processed by the server the window involved does not get unmapped properly. The window manager loses track of it but a window is still displayed and worse, the buttons still responds and call their corresponding callback function which eventually brings the whole program dow











n.

Is this problem particular to Xt, or is it a general problem with some X servers. I have experienced a similar case with another program (I think it was Xman) when one of its messages popped up asking for a confirmation and after being responded to does not popdown completely, leaving the "remnants" as described above. I have tried asking the window manager to refresh the entire display and also tried moving the window, the latter resulting in the window manager beeping an error. I have solved the problem 











rather crudely by flushing all events before reenabling the sensitivity of the buttons but would like to learn of a better way.

Thanks
Kid Mun.