Fixed the misalignment bug with window recording

In window mode there was a small misalignment between the bounding box
and the real capture area. Now it is correctly show where the recording
will take place.