On wayland an event it dispatched right after window creation. This is not the case on X11 so we need to set it manually.