SDL_MOUSEMOTION event problem when using two windows

When I create two windows only the last window will generate motion
events. The keyboard events works with either window selected. Should
I do anything special to receive the mouse motion events or is it a
bug?

I have the same problem, trying to implement a docking system and I do not receive motion events on 2nd window. Did you solve it ?