Fix monitor width detection for multimonitor setups

Fixes #1