Making application with sdl

Hello everyone , I come today to talk about you I m still on development of application with SDL ,but now I m so confused when I make resizable window on window the renderer is not clear when drag window or resize them. I had tried to use thread but I have no idea to make well.please help me and excuse me for my English level