Make sure panels are created on the current screen
The existing code does try to set the screen but because of the delayed creation of the panel it was never triggered. This patch ignores panels on other screens when deciding on the placement of the panel and immediately creates it to put it on the right screen.
Edited by Xaver Hugl