Simplified window positioning (fixes #197)