handle multiple displays, hopefully fixes #790