SDL_WarpMouseInWindow inconsistent behaviour

In a window that use linear scaling and a logical size for render, SDL_WarpMouseInWindow works as expected with the original window size.
But after a resize, such as maximized, the mouse positions is not set to the desired place. I seems to ignore the scaling to the logical window size.

Is this correct or a bug ? Any solution to this problem ?------------------------
Armando Alaminos Bouza

Any one using SDL_WarpMouseInWindow on a scaled window could comment ?
As a complement, my project is under Windows, do not tested other platformos so far.

Thanks !------------------------
Armando Alaminos Bouza