Take into account window border