hack
should not return null but primary screen
IDE: remembered window on non exisiting monitor after restart