Added usage of scope when changing window bounds.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>