{x11,wayland}: Fix restoring fullscreen windows
If the window has been originally on another output, make sure that the window will be properly put back on it.
This logic seem to originate from 7d673802, but it's not necessary anymore because geometry restore will be updated if the window is moved to another output by the user.