Don't allow window to exceed desktop dimensions