Directx driver+device lost


I’m currently using SDL 1.2.13.
When I use directX as a video driver and hardware surfaces, if I loose
the focus while in fullscreen then display will be total mess up…
According to some friends, this is a very classic “lost device” issue
with directX, how can I solve it with SDL?