Fix for multiple displays

Not tested
Merge pull request #4 from Tyilo/patch-1

Fix for multiple displays