Fix resize of parent window.

This fix the resize of a parent window, before fix if the resize button
of a parent window is in the same location to a children window the
children window will capture the cursor state, this will prevent the
resize of parent window.