added sizehints check to know if window is free or not