Determine (potentially new) screen before moving the window in fullscreen

This solves a logical error in the previous commit.