Automatic resizing of SDL window created from handle

I am using SDL_CreateWindowFrom to create window from the handle of a java window. When I resize the java window, the SDL window automatically resizes itself on windows machine, but automatic resizing does not happen on linux platform. I am wondering if this is a known issue and if there is any workaround. Thanks.