Bug fix #137: Auto-detect screen changes

Attempt to auto-detect screen changes to address the issue reported by
Feltzer.