The man pages for XSelectInput and XMapWindow should indicate that XSelectInput should be called before XMapWindow, to avoid losing Expose events. See O'Reilly, for example, in volume 2 man page for XMapWindow: "The client should call XSelectInput() for exposure events, then map, then process input events. The client's normal response to an Expose event should be to repaint the window. If you fail to wait for the Expose event before drawing, the drawing may not appear in the window." [Originally reported to Sun as Sun bug id #4333109.]
Is this implemented in a current version of xorg?
Nope - still waiting for someone to write the text to put in the man pages.
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libx11/issues/75.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.