jim@EXPO.LCS.MIT.EDU (Jim Fulton) (07/23/88)
>> [on using Expose events] > Should I have understood that from the documentation? It is somewhat terse.... In addition to the Inter-Client Communications Conventions Manual there are the following sentences in section 3.5 of the Xlib manual: If the override-redirect of the window is False and if some other client has selected SubstructureRedirectMask on the parent window, then the X server generates a MapRequest event, and the XMapWindow function does not map the window. ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ and ..., first ask for Expose events and then map the window, so the client processes input events as usual. The event list will include Expose for each window that has appeared on the screen. The client's normal response to an Expose event should be to repaint the window. This method usually leads to simpler programs and to proper interaction with window managers. ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ Jim