Wrong initial size in tiling WM

Hi. When using a tiling window manager like dwm or xmonad, my SDL
program sometimes doesn’t receive an SDL_VIDEORESIZE event telling it
what initial size the wm gave it. I’m using SDL 1.2.13.

At first I thought X11_WaitMapped() in video/x11/SDL_x11modes.c was
eating the missing ConfigureNotify events, but changing that function
and adding printfs suggests they don’t reach that point either.

Am I doing something dumb?

The attached test program makes the problem easy to see - window
should be all blue on startup, often isn’t.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: testcase.c
Type: text/x-csrc
Size: 719 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090831/f26a05be/attachment.c