What I forgot: the Restore method should probably take some similar argument like Activate's platform_data argument instead of a single integer/string. This way the argument can be extended with additional information, like with the Wayland server socket name, what Markus brought up.