And implement this on wayland, where this information is already obtained. https://bugzilla.gnome.org/show_bug.cgi?id=770026